DEV Community

Discussion on: Random numbers in CSS? Really? 🎲🤔

Collapse
 
thormeier profile image
Pascal Thormeier

You're technically right, yes. Usually it's either a lot of electrons (as in 6.24 * 10^18) flowing, or next to none. That's usually enough of a difference to be more or less reliable in a sense. Of course, quantum weirdness plays in as well. A CSS-only-RNG needs a user to give an input to settle down on a single number, much like a particle in a superposition needs an observer. 😄