Uses the browser’s Math.random() — fine for games and draws, not for cryptography.
A random number generator produces numbers that are unpredictable — no pattern you can exploit to guess the next one. People use random numbers for games and lotteries, for shuffling playlists, for picking winners in giveaways, for dice and card simulations, and for sampling in statistics and science. This tool generates random integers inside any range you choose, for example a number between 1 and 100.
True randomness comes from physical processes — atmospheric noise, radioactive decay, keystroke timing. A web page cannot easily access those, so calculators like this one use a pseudorandom number generator (PRNG): a deterministic algorithm whose output only looks random.
A PRNG starts from a seed — an initial number, often taken from the current time in milliseconds. It then applies a mathematical formula over and over, each output becoming the input for the next step. Because the formula scrambles the numbers thoroughly (modern generators like xorshift or the Mersenne Twister are designed exactly for this), the sequence passes statistical tests for randomness: every value appears roughly equally often and there is no detectable pattern.
The raw output is a huge number, so the generator maps it into your chosen range. The usual method is the modulo operation: to get a number between 1 and N, compute (raw × N) / max + 1 style scaling, or equivalently raw mod N + 1 with proper scaling. Done correctly, each integer in your range has the same probability: for 1–100, every number has exactly a 1% chance.
A good generator is uniform: over many draws, each possible value occurs about equally often. That is what makes it fair for dice rolls, draws, and sampling. It does not mean the numbers look "evenly spread" in a short run — real randomness produces streaks and repeats, and a sequence like 7, 7, 7 is just as valid as any other.
You need a raffle winner from 250 ticket holders, numbered 1 to 250:
It uses your browser’s pseudo-random generator — unpredictable enough for games, draws and sampling.
This tool makes whole numbers; set min 0 and max 1 with count 1 for a coin-flip style 0/1.