Random Number Generator

Generate random integers or decimals within a custom range, with quantity, uniqueness and sorting controls.

Number type
Ready to generate numbers.
Result overview Ready
First generated number Set the options and generate a result.
Range
1–100
Count
0
Mode
Integer
Duplicates
Not allowed

Generated numbers

  • No numbers generated yet.

Generated locally in this browser. Use for general-purpose tasks, not regulated draws or security credentials.

Learn more

Method and range rules

How random values are selected

The browser Web Crypto API fills byte arrays with cryptographically strong random values. This tool maps those bytes into the selected range with rejection sampling rather than a simple modulo operation.

Integer mode requires whole-number endpoints. Decimal mode converts the range to a fixed integer grid using the selected decimal places, samples on that grid, then formats the result back as a decimal.

Numbers without duplicates

When duplicates are disabled, the generator performs an unbiased partial shuffle of the available value positions. The quantity cannot exceed the number of distinct values in the range.

Integers and decimals

Integer mode chooses whole numbers. Decimal mode chooses fixed-precision values, so two decimal places means steps of 0.01 within the selected range.

Limits and appropriate use

Limits

  • Use this tool for general selection, examples and testing—not regulated lotteries, gambling, passwords, cryptographic keys or security tokens.
  • The maximum batch size is 1,000 values and decimal precision is limited to 6 places.
  • The scaled minimum and maximum must stay within JavaScript's safe-integer range.
Privacy and local processing

Privacy

Inputs and generated values stay in the current browser. The tool makes no runtime network requests, stores no values in localStorage and uploads nothing.

Sources and implementation decision

Sources

No third-party runtime library is used. The random-integer mapping and partial-shuffle logic are independently implemented in core.js.

Frequently asked questions

Frequently asked questions

Are the results cryptographically secure?

The browser supplies cryptographically strong random bytes, but this page is a general-purpose generator. Do not use its formatted output as a cryptographic key, password or regulated draw result.

How do I generate numbers without duplicates?

Turn off Allow duplicates. The requested quantity must not exceed the number of distinct values available in the selected range and precision.

Are the minimum and maximum included?

Yes. Both endpoints are eligible when they align with the selected integer or decimal precision.