Random number generator

Generate local cryptographic integer or decimal draws, with optional unique integers.

Jump to result

Your inputs

Updates as you type

random draws

Ready

Choose Generate to draw values.

Calculations happen in your browser. Saving is optional.

How to use this tool

Set the minimum, maximum, draw count and integer or decimal mode.

Choose Generate when ready. Unique integer draws cannot exceed the number of integers in the selected range.

Integers use rejection sampling of crypto.getRandomValues; decimals use a 53-bit uniform fraction

Worked example

These example settings describe the generator. Generated values vary; no specific random result is expected.

Example inputs
  • Minimum: 1
  • Maximum: 6
  • Draw count: 1
  • Number type: Integers (inclusive bounds)
  • Unique integer draws: No

Method illustration: For a dice preset choose integer bounds 1 to 6 and select Generate.

Assumptions and limits

  • Generation happens locally when you choose Generate. Integer mapping avoids modulo bias. Unique integers use a partial Fisher–Yates shuffle.
  • This tool is not a certified gambling or lottery system.

Method reference: Web Crypto random values

Check or report a result

Check the units, selected calculation and assumptions first. Compare the fixed example above with your inputs to identify what changed.

Report a calculation issue with the page address, hypothetical inputs, result displayed and result expected. Do not include passwords, bank details or other private information.