Replace global Math.random with a predictable generator
releasedWarning: Calling Math.seedrandom(seed) without the new keyword replaces the global Math.random() function with a predictable version. This is useful for derandomizing code during testing, but should be avoided in production libraries as it makes Math.random() predictable for all code in the environment.
Math.seedrandom('hello.');
console.log(Math.random()); // Always 0.9282578795792454