Number generator

Number generator

How the random number generator works

Enter a minimum and a maximum and the tool picks a whole number between them. Both ends are included, so a range of 1 to 6 can return 1, 6 or anything in between, like a dice roll. Each number in the range has the same chance.

The number comes from a standard pseudo-random generator. It is fair for games, giveaways and sampling, but it is not designed for cryptography, so do not use it to create secret keys or passwords.

Ideas for using it

  • Pick a giveaway winner: number your entries, then generate a number from 1 to the total.
  • Roll dice of any size, or choose a random page, row or question.
  • Take a random sample from a numbered list for quality checks.
  • For passwords and tokens, use the Password Generator, which is built for security.

Common questions

Is this random number generator truly random?

It is pseudo-random: computed by an algorithm that produces numbers with no usable pattern for everyday use. Truly random numbers need a physical source of noise.

Can it generate decimals or negative numbers?

It returns whole numbers. Negative ranges work as long as the minimum is smaller than the maximum.

Is it fair enough for a contest?

For informal giveaways, yes. For regulated lotteries or prize draws with legal rules, use an audited method the rules accept.

Next steps

Password Generator · UUID Generator · Lorem Ipsum Generator

Similar tools

MD5 generator
Compute the MD5 hash of a string.
UUID generator
Generate a version-4 UUID.
Lorem Ipsum generator
Generate placeholder Lorem Ipsum text.