Skip to content
Toolbrik

Random Number Generator

Generate lists of whole or decimal numbers within a range, or random HEX colors. Configure whether to allow repeats, sort the result, and the number of decimals.

Settings

Random result

Configure the settings and click "Generate numbers".

How to use: Random

  1. 1Pick the type: integers, decimals or HEX colors.
  2. 2Set the range, the amount and whether repeats are allowed.
  3. 3Generate the numbers and copy them.

What is it for?

  • Run giveaways and pick random winners.
  • Generate test data.
  • Make decisions or run games.

Random numbers: quality randomness

Pseudo-random versus cryptographic

Math.random is fast but predictable: unsuitable for keys or serious draws. The browser's crypto.getRandomValues API provides cryptographic randomness.

Fair draws

To pick a number in a range without bias you must discard values that would break the uniform distribution; simply using the modulo favors some numbers.

With or without repetition

For list draws, enable the no-repetition option: each value comes out only once, like drawing balls from a drum.

Related tools

Frequently asked questions

Are they truly random?+

Yes. They use the browser's random number API, safe for non-cryptographic uses like simulations, test data or color selection.

Was "Random" useful?

Share it with whoever needs it. It's free and stores no data.