# Random Number Generator / Picker

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.

If you prefer, you can still use the original Random Number Picker. You can also pick one item out of a list!

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.

## Enter a number:

## Result:

Click “Get random!”

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

andrew.hedges.name /
experiments /
Random Number Generator / Picker