ToolSnap
Generator

Random Number Generator

Generate one or multiple cryptographically secure random integers in any range. Includes dice presets and a list picker for choosing random items.

How to use

Number: Set a min, max and count, then click Generate. Enable No repeats to get a unique set — useful for lottery-style draws.

Dice: Click any die (d4, d6, d8, d10, d12, d20, d100) to roll it. Results use the crypto API for fair rolls.

List picker: Paste a list of items, choose how many to pick, and click Pick. Great for selecting random winners, teams, or tasks.

Use cases

  • Picking a random winner from a raffle or giveaway list
  • Rolling dice for tabletop RPGs (D&D, Pathfinder) without physical dice
  • Generating random numbers for statistical sampling or simulations
  • Randomly assigning tasks, seats, or groups in a classroom or team
  • Creating random test data within a specific numeric range

Limitations

Maximum 500 numbers per generation. For very large datasets, generate in batches.

No-repeats mode requires the range (max − min + 1) to be at least as large as the count requested. If you ask for 10 unique numbers between 1 and 5, the tool will warn you.

Frequently asked questions

Are these numbers truly random?
This generator uses the browser's crypto.getRandomValues() API, which provides cryptographically secure random numbers. They are as random as your computer can produce and are suitable for security-sensitive use cases like lottery draws, random sampling and token generation.
What is the difference between random and pseudo-random?
Pseudo-random numbers are generated by a deterministic algorithm seeded with a value — they look random but are reproducible. Truly random numbers come from physical entropy (hardware noise). crypto.getRandomValues() uses hardware entropy sources, making it far more unpredictable than Math.random().
Can I generate negative random numbers?
Yes — set the minimum value to a negative number. For example, min -100, max 100 will generate integers anywhere in that range.
Can I use this to pick a random winner from a list?
Yes — count how many entries you have, set min to 1 and max to that count, generate one number, and that is your winner's position. For small lists, paste them into the list picker tab.
What is the maximum range I can use?
This tool handles the full safe integer range of JavaScript (up to ±9 quadrillion). For most practical uses — dice rolls, lottery numbers, random sampling — any range you need will work fine.

Related tools