Random Number Generator
Pick random numbers in any range with no repeats option
About this tool
This free random number generator picks one or many whole numbers from any numeric range you define. Toggle the no-repeats option for fair drawings, raffles, and contest winner selection where each number should appear at most once. Enable sorting to display multiple results in order. Everything runs in your browser using the Fisher–Yates shuffle algorithm for unbiased unique picks.
Random number generators (RNGs) are used in an enormous range of applications: cryptography and security, statistical sampling, computer simulations, procedural game content generation, lottery draws, randomized clinical trials, A/B testing, and shuffling music playlists. The quality of randomness matters significantly — a weak RNG can introduce bias that undermines the fairness of a draw or the security of an encryption key.
This generator uses JavaScript's Math.random() for general random picks, which is a pseudorandom number generator (PRNG) seeded from the system clock. It produces statistically uniform results and is more than sufficient for games, raffles, and decisions. For applications where cryptographic security is required (e.g., generating OTP codes, encryption keys), use the Web Crypto API's getRandomValues() instead — which is what the password generator on this site uses.
For a raffle with N participants, generate N unique numbers in range 1–N with no repeats. The order they appear is a random permutation — first number is first prize, second is second prize, etc. This is mathematically equivalent to shuffling a deck of numbered cards. For a class lottery, enter the range 1 to (number of students) and generate 1 number to pick a random student.