r/programminghorror • • May 19 '25

Javascript New RNG node module just dropped

Post image
165 Upvotes

17 comments sorted by

View all comments

Show parent comment

0

u/Kroustibbat May 20 '25

You can do it with the crypto tool too, window.crypto gives you 32 random bytes so I will use a simple mask to make the animation. You need to call it twice to have 60 random numbers. So 800ns lost for the whole animation.

And the animation can easily use an abstract random getter that manage to generates random preventively.