seedrandom icon indicating copy to clipboard operation
seedrandom copied to clipboard

seeded random number generator for Javascript

Results 8 seedrandom issues
Sort by recently updated
recently updated
newest added

I added a playground for the instant execution of code snippets with sample code.

Context: I want to use [TensorFlow.js](https://github.com/tensorflow/tfjs) in the browser. I'm using [rollup](https://rollupjs.org/) to bundle my app for the browser. The TensorFlow.js source [imports from `seedrandom` in several places](https://github.com/tensorflow/tfjs/blob/69dfce1f988d516b148f7e961490cc6acf0880ba/tfjs-core/src/ops/rand_util.ts#L18). This [comes...

Not sure if saving the state is how to do this. I want to be able to go back a number of steps and repeat the random numbers again from...

arc4.g in prng function sometimes (rare) returns NaN. Software used: Scripting interface of Adobe After Effects 2020 For folks having the same issue: I did this (ugly) quickfix which works:...

(hi, thanks for this library - very excited to be able to seed things, so e.g. if i try to make a game i can experiment with replaying things by...

please add a CHANGELOG file instead of putting the history into the README. Maybe you want to adopt also the [keep a changlog](https://keepachangelog.com) idea.

Have you looked into using asm.js for the PRNG algorithms? http://asmjs.org/ It may take a little refactoring but there is a potential speed boost. http://jsperf.com/asm-js-rng/6