- Generators
- Random
Random
Random numbers
Frequently Asked Questions
How does random number generation work?
Computers use algorithms (PRNGs) that produce sequences appearing random but are deterministic. For cryptography, use cryptographically secure random number generators (CSPRNGs).
What is the difference between random and pseudorandom?
True random uses physical phenomena (atmospheric noise, radioactive decay). Pseudorandom uses mathematical algorithms that are deterministic but statistically random.
Is Math.random() secure for passwords?
No, Math.random() is not cryptographically secure. For passwords and security tokens, use crypto.getRandomValues() in browsers or crypto module in Node.js.