Web Crypto random numbers and uniform distribution
Commonly used for general interface special effects Math.random(), but it's not designed for unpredictability. This tool uses crypto.getRandomValues() Obtain cryptographically secure random numbers; integer mode then uses rejection sampling to avoid direct modulo making certain numbers appear slightly more often.
Decimal mode will map safe random numbers to the specified range and then round them to the selected number of digits. When "Allow Duplicates" is turned off, the tool will continue to extract and remove duplicates, and will also first check whether there are enough different values at the current precision. This is suitable for test data, random sorting, game prototypes and general draws; formal draws involving bonuses, regulations or public audits should still use dedicated processes with verifiable records.
Three quick modes
- Dice: A single integer from 1 to 6.
- Lotto: Take 6 non-repeating integers from 1 to 49 and sort them.
- Percentage: 0 to 100, rounded to two decimal places.