How it works
Inclusive integer boundaries
Both minimum and maximum can appear. Negative values and a minimum equal to the maximum are supported. Values must be safe JavaScript integers; internal range arithmetic uses BigInt to avoid losing precision.
Unbiased rejection sampling handles wide ranges without a floating-point approximation. Random results do not predict a lottery, establish fairness in a regulated draw or promise a particular distribution in a small sample.
What happens to your input?
This tool does its work on this page. The site does not submit your entries or results or keep a history. However, any script allowed to run on the page could read its fields. Clearing the tool or leaving the page cannot erase clipboard entries, downloads, printouts, or screenshots. It also cannot protect you if your browser or device is compromised. Read the privacy limits.