Random Number Generator β Min to Max
Free random number generator: set min and max to get a random integer (inclusive). For games, raffles, simulations. No sign-up.
Random Number Generator
Generate a random integer between min and max (inclusive). Client-only; no server calls.
How the random number generator works
result = Math.floor(Math.random() * (max β min + 1)) + min
This ensures each integer from min to max (inclusive) has equal probability. The generator runs in your browser and does not store results.
Uses for a random number generator
A random number generator is useful for games (dice, card draws), raffles and giveaways, simulations, picking a random item from a list (if the list is numbered), and educational exercises in probability. Set min and max to match your rangeβe.g. 1 to 6 for a die, 1 to 100 for a percentile, or 1 to 52 for a deck of cards.
The generator produces integers only. For decimal random numbers, you would need a different approach. For probability calculations (e.g. chance of rolling a 6), use our probability calculator. This tool is client-side only; no data is sent to a server.
