Is there a way to turn the seedrandom off?
danzen opened this issue · comments
I would like to go back to a normal Math.random() part way through my script. And I do want to initially adjust the Math.random() - not get a local PRNG. Is there a way to do this? Cheers.
Oh... I figured out a way...
const r = Math.random;
seedrandom(1000000);
// do stuff...
// then...
Math.random = r;
// we are back to normal
Oh - saw there was already an issue for unset... sorry for the duplicate! Same answer too.