Skip to content
YoussefLabs

Random Number Generator

Generate random number

Loading tool workspace...

What it does

  • Inclusive Bounds

    Both the minimum and the maximum can be returned, and negative ranges work.

  • Unbiased and Secure

    Uses crypto.getRandomValues with rejection sampling, so every number in the range is equally likely.

  • Unique Numbers Mode

    Draw without repeats using a shuffle, with a clear message if the range is too small.

  • Safe Integers Only

    Whole numbers within the safe integer range, with decimals rejected rather than silently rounded.

Frequently asked questions

Is anything sent to a server?

No. Numbers are generated in your browser. The page does download the code needed to run the tool.

Are the minimum and maximum included?

Yes. Both bounds are inclusive, so 1 to 10 can return both 1 and 10.

What does "Unique numbers only" do?

No number appears twice. If you ask for more unique numbers than the range holds (for example 6 unique numbers between 1 and 5), the tool explains why it cannot.

Why are decimals not allowed?

This tool generates whole numbers. Decimal bounds are rejected instead of being rounded, so the range you see is the range you get.