randomSignedDouble function

double randomSignedDouble()

Returns a random double in the range of -1.0 to 1.0.

Implementation

double randomSignedDouble() {
  return _random.nextDouble() * 2.0 - 1.0;
}