Creates a random function that returns the same sequence of numbers in [0, 1) for the same seed
Use it wherever Math.random would go when results must repeat, such as a level generated from a
shared seed or a replay. It runs mulberry32, seeded by hashing the string with xmur3, and isn't
safe for cryptography.
Parameters
seed: string
Any string; the same string always gives the same sequence
Creates a random function that returns the same sequence of numbers in
[0, 1)for the same seedUse it wherever
Math.randomwould go when results must repeat, such as a level generated from a shared seed or a replay. It runs mulberry32, seeded by hashing the string with xmur3, and isn't safe for cryptography.