How This Calculation Works
This tool uses JavaScript's Math.random() to generate pseudo-random numbers within your specified range. Each number has an equal probability of being selected.
The dice roller simulates two six-sided dice, and the coin flip has an equal 50/50 chance of heads or tails.
Common Mistakes to Avoid
- Expecting patterns. Random numbers have no memory — getting 5 heads in a row does not make tails more likely next.
- Using for security. Math.random() is not cryptographically secure. Do not use it for passwords, tokens, or encryption keys.
Worked Example
Generate 3 random numbers between 1 and 100: e.g., 42, 87, 13.
Roll two dice: e.g., 🎲 4 + 3 = 7.
Flip a coin: e.g., 🪙 Heads.