Set a range and generate one or many random numbers — whole or decimal, with or without duplicates.
This tool generates truly random numbers within any range you choose. Set a minimum and maximum, decide how many numbers you want, and optionally block duplicates or allow decimals — then click Generate for an instant, unbiased result. Everything runs locally in your browser using your device's random number engine, so results are never predictable or reused from a stored list.
By default, the generator produces whole numbers (integers) between your minimum and maximum, inclusive. If you turn on the decimal option, it instead produces numbers with two decimal places within the same range — handy for simulating measurements, prices, or other continuous values rather than counts.
With "No duplicate numbers" switched off (the default), every number is generated independently, so the same value can appear more than once in your results — this mirrors real-world random events like dice rolls or lottery draws where repeats are possible. Switching it on generates a unique set instead, similar to shuffling a deck of numbered cards and drawing without putting any back. Note that unique mode requires your range to contain at least as many possible values as the count you're requesting.
The generator uses your browser's built-in random number function, which is suitable for everyday needs like games, raffles, sampling, and simulations. For each number, it scales a random fraction between 0 and 1 to fit your chosen range, then rounds appropriately depending on whether decimals are enabled. When uniqueness is required, it keeps generating and discarding repeats until it has collected the requested count of distinct values, then optionally shuffles the final list.
Set the minimum to 1 and the maximum to your total number of entries, set count to 1, and click Generate — the result tells you which entry number won.
Use the same range, set count to however many winners you need, and turn on "No duplicate numbers" so nobody is picked twice.
Set minimum to 1, maximum to 6 (or however many sides your die has), and count to however many dice you're rolling — leave duplicates allowed, since real dice rolls can repeat.
Yes — set the minimum to any negative value and the range will work correctly, including ranges that span from negative to positive.
Up to 500 numbers per click, which comfortably covers raffles, classroom activities, and most data-sampling needs.
Unique mode needs your range to contain at least as many whole numbers as the count you're requesting — for example, you can't generate 20 unique numbers from a range of only 10 possible values.
They're generated using your browser's cryptographically-seeded random number engine, which is more than sufficient for games, raffles, sampling, and everyday randomization needs.