CaseWren

Random Number Generator

Unbiased random integers and decimals in any range.

Set a range and hit Generate — every draw is cryptographically unbiased.

About the Random Number Generator

Most quick “random number” snippets on the web use Math.random() and a modulo — a combination that is both predictable and biased toward certain values. This tool draws from your browser’s cryptographic RNG and uses rejection sampling, so every integer in your range has exactly the same probability. That matters for raffles, simulations, sampling and games where fairness is the point.

Set any minimum and maximum — negative numbers and huge spans work too — and switch between integers and decimals with up to 10 decimal places of precision.

How to use it

  1. 1Enter the minimum and maximum of your range.
  2. 2Choose Integer or Decimal (and the number of decimal places).
  3. 3Click Generate for an unbiased result, then Copy it.

Frequently asked questions

Related tools

Search CaseWren tools

Search all 147 tools…