🎲 Random Number Generator
What is the Random Number Generator?
This tool generates numbers using crypto.getRandomValues() — the same cryptographically secure random number API used in security applications — rather than the weaker Math.random() function. It covers four modes: a single random integer in a range, a set of multiple numbers (with or without repeats), a dice roller for any number of sides, and a coin flip, so one page handles nearly every everyday randomization need.
How to Use It
Choose the tab that matches your need. For a single number, set a minimum and maximum and click Generate. For a set — like lottery numbers — set the range, how many numbers you want, and whether repeats are allowed. The dice roller lets you pick the number of dice and sides per die, and the coin flip tab lets you flip one or many coins at once, with a running history kept below the result.
When to Use It
Use it for picking lottery or raffle numbers, running a tabletop game that needs dice rolls, settling a decision with a coin flip, drawing a random sample for a survey or experiment, or randomly selecting a winner from a numbered list of entries without any risk of bias.
Who Benefits
Teachers picking random students, game designers testing mechanics, researchers drawing random samples, and anyone running a raffle or giveaway can get an unbiased result instantly instead of relying on guesswork or a physical dice and coin that might not be handy.