next method

double next()

The next repeatable pseudo-random value in the half-open range 0 to 1.

Implementation

double next() {
  _s = (_s * 1103515245 + 12345) & 0x7FFFFFFF;
  return _s / 0x7FFFFFFF;
}