[SOLVED] Seeding JS Math.random()
Is there a simple way to seed the JS Math.random() so that it will return the same number each time just like Python’s random.seed() works?
Nathan Lewis exactly like here: https://github.com/davidbau/seedrandom/blob/released/README.md I've included it from cdnjs, initialized the generator with passing to Math.seedrandom an array of numbers and then using Math.random to get my numbers.
🤖 Basile Laderchi perfect, I messed up on the script placement. works perfectly! thanks so much(:
thanks everyone! 🤖 Basile Laderchi i was having trouble with seedrandom, could you explain how it works? edit: Nevermind i put the script in the wrong place😂😂
Nathan Lewis you're welcome