TinyCalc

Secure Random Number

A cryptographically secure random integer in any range.

Resulttinycalc.net
uniform integer in [min, max] via rejection sampling of crypto.getRandomValues()

How it works

Unlike Math.random(), this draws from the browser's cryptographically secure generator (crypto.getRandomValues) and uses rejection sampling, so every integer in the range is exactly equally likely — no modulo bias. Suitable for raffles, PINs and picking winners. Press re-roll for a fresh draw.

Related calculators