Random Number Generator
Generate random numbers, roll dice, or flip coins
How Random Number Generation Works
The Random Number Generator uses JavaScript's Math.random() to produce pseudo-random numbers within your specified range. It also includes dice roller and coin flip modes for common randomization needs.
Formula
Random integer in [min, max]: Math.floor(Math.random() * (max - min + 1)) + min
Key Features
- ✓Generate random numbers in any range
- ✓Generate multiple numbers at once (up to 1000)
- ✓Option to allow or prevent duplicates
- ✓Sort results ascending
- ✓Dice roller with d4, d6, d8, d10, d12, d20
- ✓Coin flip with heads/tails tally
Pro Tip
When duplicates are disabled, the maximum count of numbers is limited to the range size. For cryptographic purposes, use window.crypto.getRandomValues() instead of Math.random().
Recommended Tools & Services
Udemy Pro
Thousands of courses on business, tech, creative skills and more
Skillshare Premium
Creative classes in design, business, technology and more
Coursera Plus
University-level courses and professional certifications
Disclosure: We may earn affiliate commissions from some of the products and services recommended on this site. This does not affect the price you pay and helps support our service to provide free tools.