Understanding Random Numbers and Ranges
Generating a random number involves drawing a value from a specified mathematical distribution. This tool computes discrete integers based on a uniform distribution, where each value within your boundaries has an equal mathematical likelihood of selection.
The Range Selection Formula
When building numbers inside custom endpoints, a scaling offset is applied. The formula translates a fractional random seed value (between 0.0 and 1.0) into your requested integer bounds:
Duplicate Checks & Sets
If you choose to exclude duplicate numbers, the system constructs a mathematical Set of unique numbers. As random numbers are drawn, they are validated against the set. If the set size grows to match the requested quantity, generation stops. To ensure the generator does not hang, the system confirms: