Is it possible to seed the random number generator (Math.random) in Javascript?
A simple approach for a fixed seed:
function fixedrandom(p){ const seed = 43758.5453123; return (Math.abs(Math.sin(p)) * seed)%1; }