Categories
BLOG

pick a number between 6 and 600

Random Number Generator / Picker

I occasionally get feedback on this page about how it’s “not random enough.” If you are generating random numbers from a very large base, most of the numbers are likely to be close to that base.

E.g., if I ask for a random number between 1 and 1000, the possible results are: 1 number with 4 digits, 900 numbers with 3 digits, 90 numbers with 2 digits and 9 numbers with 1 digit.

So, the vast majority of your results are going to have 3 digits. For a more detailed explanation, see this question I posed on Stack Overflow on this very topic.

Click “Get random!” to pick a random number between 1 and whatever you enter in the field below, inclusive. This generates a pseudo-random number using JavaScript’s Math functions.

Enter some numbers:

Result:

Random number code based on JavaScript documentation on the Mozilla Developer Center.

Copyright © 2008 — 2015 . All rights reserved.

Random Number Generator / Picker I occasionally get feedback on this page about how it’s “not random enough.” If you are generating random numbers from a very large base, most of the