MATH

Random Number Generator

Random Number Generator: Generate values on demand.

SET UP FOR YOUR COUNTRY Country preferences

Random Number Generator for United States

US · 12,345.67US customary measurementsRoad distance: miles

United States display and unit preferences. The stated calculation method is used. Review the labeled units before entering your values.

Switch countries to open a separate scenario. Your edits are kept while this calculator is open; use Save scenario to keep them on this device.

Your details

Enter a whole number.
Enter a whole number.

Your result

Choose your settings, then press Generate.

Formula and method

Sample with a platform cryptographic random source and rejection sampling; integer endpoints are inclusive. Decimal values use the selected finite decimal grid.

This calculation uses the values you enter. It runs in your browser and does not request a location or account.

Worked example

Integer bounds 1 and 6 produce values from 1 through 6 inclusive.

Questions people ask

Which method does this tool use?

Sample with a platform cryptographic random source and rejection sampling; integer endpoints are inclusive. Decimal values use the selected finite decimal grid.

What should I check before using the result?

Generate values on demand. Unique mode applies to integers; decimal draws can repeat. Results are not reproduced by saving input settings.