{ } 2DevKit
Tools / Generators

Random Number Generator

Generate uniformly sampled random integers from a chosen safe-integer range using Web Crypto, with batch and JSON export.

Integers are sampled uniformly using cryptographic randomness and rejection sampling. Repeats are possible.

Everything runs locally in your browser.

What is Random Number Generator?

A random integer generator selects from an inclusive range. This tool avoids modulo bias using rejection sampling. Results can repeat because each draw is independent; choose minimum and maximum within JavaScript's safe integer bounds.

How to use this tool

  1. Enter inclusive integer minimum and maximum values.
  2. Set a batch size from 1 to 1,000.
  3. Generate unbiased random integers and copy or export the list.

Example

Minimum: 1, maximum: 100; example result: 42

Related developer tools