Random Number Generator

Generate random integers or decimals within a custom range instantly.

How It Works

This tool generates random numbers using the linear transformation formula: result = min + Math.random() × (max − min). For integers, the result is floored to the nearest whole number using Math.floor(). For decimals, the output is rounded to your chosen number of decimal places. Each call to Math.random() produces a uniformly distributed value between 0 and 1, ensuring every number in your range has an equal probability of being selected. The tool processes all requests locally in your browser — no data is sent to any server.

Frequently Asked Questions

How do I generate a random number between two values?

Enter your desired minimum and maximum values in the input fields, choose whether you want an integer or decimal result, and click Generate. The tool uses the uniform distribution formula to produce a truly random value within your specified range.

Is this random number generator truly random?

This tool uses JavaScript's Math.random() function, which generates pseudo-random numbers using the browser's built-in algorithm. While not cryptographically secure, it produces evenly distributed results suitable for games, simulations, sampling, and everyday tasks.

Can I generate multiple random numbers at once?

Yes. Set the 'Quantity' field to any number between 1 and 100 to generate that many random values in a single click. Each number is independently generated within your specified min and max range, and you can copy all results at once.