How random number generator works
Web Crypto rejection sampling gives each integer in the inclusive range equal probability.
Try an example
Minimum 1 and maximum 6 simulate a six-sided die.
Good to know
Range width at most 2^32. Random outputs naturally change when generated again.
Your privacy
Processing happens on this device. We do not upload your input, put it in share links or save it to your favourites. Closing this tab discards the working input; downloaded results remain wherever you save them.