Random Number Generator illustration

Random Number Generator

Draws random integers from any range — one big number or a whole list, with or without repeats, sorted or in draw order. Uses unbiased rejection sampling on top of the browser's crypto random source.

Runs 100% in your browser — nothing you generate leaves your device.

Notes

  • Naive "random() % range" arithmetic slightly favours small numbers; this tool uses rejection sampling, so every value in the range is exactly equally likely.
  • "Unique" mode is a partial Fisher-Yates shuffle — ideal for lottery-style draws where a number must not repeat.
  • Everything runs locally in your browser; nothing you enter or generate is sent to any server.

Explore the idea

This interactive demo needs JavaScript.