3 ms·
> reproducible random sequence That’s a hell of an oxymoron. Edit Yes, I know obviously the intent was to refer to a pseudorandom sequence, but that’s not wha
by alanh 11y ago
> reproducible random sequence
That’s a hell of an oxymoron.
Edit Yes, I know obviously the intent was to refer to a pseudorandom sequence, but that’s not what was said. It’s also not what Math.random promises. It promises random-seeming output, nothing more, nothing less. It did not promise a cross-platform, reliably reproducible stream of pseudorandom numbers, and it would be in error to abuse a black-box "random" API by considering it to be a fully specified pseudorandom stream.
- dchest 11y agohttps://en.wikipedia.org/wiki/Pseudorandom_number_generator https://en.wikipedia.org/wiki/Pseudorandom_number_generator