Random Number Generator
Generate random whole numbers or decimals in any range, with or without repeats, for sampling, games or lab randomising.
These tools are for study and quick checking. A result is only as good as the numbers you enter and the simplifying assumptions in the formula. For published, regulated or safety-critical work, check it against a trusted source or an instrument.
How it works
- Enter your values in the boxes. Where a box has a unit beside it, check the unit before you read the answer.
- The answer updates as you type, so there is no button to press.
- Use Copy results to keep the answer. Check the formula and its limits below if the result will go into a report or an experiment.
The formula
Uniform random choice from [min, max] using your browser's crypto random source
Frequently asked questions
Is it truly random?
It uses the browser's cryptographic generator, which is suitable for sampling and games, but do not use it as a replacement for hardware keys.
Can I get unique numbers?
Yes. Set repeats to No and the numbers drawn will all differ, as long as the range is big enough.
Is what I enter sent anywhere?
No. The calculation is done in your browser, so your numbers are not sent to a server or saved.
Related tools
Probability Calculator
Find the chance of one event, of A and B, of A or B, and of neither, from the probability of each.
Mean, Median and Mode Calculator
Paste a list of numbers and get the mean, median, mode, range, count, sum and the smallest and largest values.
Scientific Calculator
Type an expression with brackets, powers, roots, logs and trig functions and get the answer at once. Switch between degrees and radians.