Random Number Generator
Pick Random Numbers
About this Random Number Generator
TopPicksDaily’s Random Number Generator uses window.crypto.getRandomValues
for CSPRNG quality. Unique mode samples without replacement using an O(k) method (Floyd’s algorithm) for uniform, efficient draws. Optional sound and confetti are client-side.
Presets cover common tasks (coin flip, D6, D20). Sort the output, choose separators (comma, space, new line), copy text/JSON, or download. Large runs are capped at 1,000; ranges use 32-bit integers. Mapping uses rejection sampling to avoid bias.
Under the hood, each value is produced by the browser’s cryptographically secure source, then mapped with rejection sampling so every candidate is equally likely. With Unique (No repeats), we use Floyd’s algorithm to pick exactly k
distinct integers from [min,max]
in linear time with respect to k
. It’s ideal for raffle pulls, classroom groupings, or randomized question orders.
The UI is tuned for speed: preset chips, three separators, and an action grid that fits on phones. Copy JSON gives a structured payload (inputs, order, separator, timestamp, values). Preferences like sound/celebration persist locally.
Limits: 1,000 numbers per run. 32-bit integer range. This tool isn’t a substitute for regulated, audited RNGs; it’s perfect for tutorials, classrooms, prototypes, prize draws with friends, and everyday “pick-a-number” tasks.