Press Generate to create random numbers.
Learn more
How this calculator works and what to know before using it
What this calculator does
Generates random numbers within a custom range โ integers or decimals, with optional uniqueness.
How to use it
- Set minimum and maximum values.
- Choose count, integer vs decimal, and whether duplicates are allowed.
- Press Generate for a new set.
Formula used
Uniform random number
Uses JavaScript Math.random() โ suitable for games and general use, not cryptography.
Source. Each value uses JavaScript Math.random, as defined in ECMA-262. Integers include both ends of the range. Decimals run from the minimum up to, and not including, the maximum. ECMA-262, Math.random.
Updated November 1, 2026
Example
Generate 5 unique integers from 1 to 100 for a raffle or classroom activity.
Good to know
- Not suitable for security, gambling compliance, or cryptography.
- Unique integers require the range to be at least as large as the count.
Common questions
- Can I use this for a raffle or giveaway drawing?
- Yes, for informal drawings. For regulated lotteries or high-stakes contests, use a certified random source.
- Will numbers repeat if I choose unique?
- No โ unique mode guarantees no duplicates in a single generation. The range must fit the count (e.g. can't draw 100 unique numbers from 1โ50).
Advertisement
