Class for creating random values, supporting Javascript's Math.random and a deterministig pseudo-random number generator (PRNG)
that can be fed with a seed and then returns a reproducable set of random numbers (if the precision of Javascript allows)
Create an instance of Random.
If a seed is given, LFIB4 is used as generator, reproducing a series of numbers from that seed.
If a function producing values between 0 and 1 is given, it will be used as generator.
Class for creating random values, supporting Javascript's Math.random and a deterministig pseudo-random number generator (PRNG) that can be fed with a seed and then returns a reproducable set of random numbers (if the precision of Javascript allows)
Author
Jirka Dell'Oro-Friedl, HFU, 2019