lcg method

  1. @override
double lcg()
override

Implementation

@override
double lcg() {
  s = (a * s + c) % m;
  return s / m;
}