Random Number Generator

Integer or decimal, any range, with or without duplicates. Cryptographic randomness, in your browser.

Results

Common uses

  • Raffle drawings — generate N unique integers in [1, total entries].
  • Sampling — pick row numbers for a random sample of a dataset.
  • Coin flip — min 0, max 1, count 1.
  • Decision making — min 1, max N where N is the number of options.

True random vs pseudo-random

Browser crypto.getRandomValues mixes hardware entropy sources (mouse jitter, timing, OS pools) — it's cryptographically secure and indistinguishable from "true" randomness for any practical purpose. Don't use it for cryptographic key generation in production (use a proper library), but for raffles, simulations, and decisions, it's exactly right.