crand function

double crand(
  1. Random rand
)

Return a random variable between -1,1.

Implementation

double crand(Random rand) => 1.0 - 2.0 * rand.nextDouble();