Rando.js
Rando.js copied to clipboard
Cleaner random numbers
I have changed the cryptoRandom function to create an IEEE 754 double from scratch. It generates 2 random 32-bit unsigned integers using crypto.getRandomValues, and constructs a double from them. IMO this is the closest you can get to constructing a random double, as it fills the whole 53 bits (that it can represent) with random bits.