The next pseudo-random number, uniformly distributed in [0, 1).
This is mulberry32, a small, fast PRNG that's more than good enough
for games (though not for cryptography).
A pseudo-random boolean
The chance of returning true (default 0.5)
A pseudo-random integer in [0, maxExclusive)
The exclusive upper bound
A pseudo-random integer in [minInclusive, maxExclusive)
The inclusive lower bound
The exclusive upper bound
Reset the generator to start over from seed. Calling reseed(1234)
and then making the same sequence of next()/nextInt()/etc. calls
will always produce the same sequence of results.
The seed to restart from
Random is a seedable pseudo-random number generator. Unlike
Math.random(), reseeding with the same number and making the same sequence of calls always produces the same sequence of results, which is useful for procedural level generation you want to be reproducibleIf you don't care about reproducibility, you don't need to seed it at all: the constructor picks a seed from the clock, so an unseeded RandomService still behaves like an ordinary random number generator.