Content
@
0 reply
0 recast
0 reaction
Liam Egan
@liamegan
Want some easy-to-use JS RNG utils that work with most any PRNG? I wrote this to help me out and thought others might find it useful. https://github.com/liamegan/rng-utils Install it to your project with `npm install rng-utils` and add your PRNG to it with `setRNG`.
2 replies
1 recast
4 reactions
Liam Egan
@liamegan
It includes some minimal functions like `r()` for a random number based on the provided RNG, or `gaussianRandom(0,1)` or `weightedOption([['option 1', 10], ['much lower likelihood', 1]])`
0 reply
0 recast
0 reaction
Marius Watz
@mariuswatz
154 $DEGEN - it’s all I got! 🥳
0 reply
0 recast
1 reaction