convertCASEpro

MODE

Random Number Generator

Set a range and a count and get unbiased random numbers.

OUTPUT
CHARS: 0WORDS: 0LINES: 0

How the Random Number Generator works

Whole numbers are drawn uniformly from the range, inclusive of both ends, using the browser's cryptographic generator and a rejection method that avoids the slight bias of a simple modulo. Decimal mode returns values with the number of places you choose.

No repeats gives unique whole numbers, like drawing tickets from a hat, and the tool will tell you if the range is too small. Results can be sorted and separated by new lines, commas or spaces.

When it is useful

  • •Drawing raffle numbers or lottery style picks.
  • •Picking a random sample of row numbers from a dataset.
  • •Rolling large dice and creating test values.
  • •Choosing a number for games and classroom exercises.

Frequently Asked Questions

Is it suitable for security or lotteries?

It uses a secure source, which is good for fair draws. For regulated lotteries, follow the rules of the organizing authority.

Why do I get an error with no repeats?

You asked for more unique numbers than the range holds. Widen the range or lower the count.

Can the range include negative numbers?

Yes. Both the minimum and the maximum can be negative.

Related tools

[ Browse all tools ]