PcgRandom

A 32-bit pseudorandom number generator. Uses PCG32, an algorithm of the permuted congruential generator family, offering very strong randomness.

It can be created via  or. Note that math.random works about 19.3 times as fast as this.

Methods

 * — return next integer random number
 * — return next integer random number
 * — return normally distributed random number
 * This is only a rough approximation of a normal distribution with mean=(max-min)/2 and variance=1
 * Increasing num_trials improves accuracy of the approximation