Random Number Generator

Set your range, hit generate, get a random integer — instantly, every time.

About this tool

How is the number generated?

The tool uses Math.random(), your browser's built-in pseudorandom number generator, to produce a uniformly distributed integer between your chosen minimum and maximum, both inclusive.

Can I generate negative numbers?

Yes — set a negative minimum (e.g. -100) and the tool will generate numbers within that range, including negative values.

What are the quick-range presets?

Presets set the min/max for common scenarios: 1–6 simulates a standard dice roll, 0 or 1 simulates a coin flip, and 1–49 is a typical lottery range.

Does the tool track my results?

A short history and running stats are shown in your current session only. Nothing is saved when you leave.