Online random number generator
An online random number generator runs in the browser and returns a number in the range you set. You do not install software. Most widgets are pseudorandom: enough for a class draw or a game, not for a secret key.
How it works
You open a page, set a minimum and a maximum, and ask for one integer or several. The script draws from that closed interval and prints the result. A random number generator online is the same request with the words in another order. Nothing about “online” changes the arithmetic. It only means the picker is a page, not a box on your desk.
Inclusive ends are the usual reading. If you asked for 1 through 100, both 1 and 100 should be allowed. If the top value never appears, the code may be using a half-open interval that drops the maximum, a common programming habit. Check the printed bounds. If the page shows the range, believe the range, not the marketing title.
Each click is a new draw unless the page freezes the result. Independent draws can repeat. If you need unique values, that is a shuffle of the interval, then a take. A stream that secretly avoids recent values is no longer uniform. Decide whether you wanted a die or a deck.
Settings that actually change the result
The range is the first setting. Integers versus decimals is the second. Count — one number or a list — is the third. Replacement — may a value repeat — is the fourth. Get those four right and the rest is decoration.
Range: write both ends; include them unless you said otherwise. Type: whole numbers unless you asked for fractions. Count: one result, or n results. Repeats: allowed on a stream; forbidden on a shuffle.
A page that hides the range and only shows a spinning graphic is a poor record. Screenshot the numbers and the bounds together if anyone else has to live with the draw. A result without a range is not a specification. The next person cannot tell whether 0 was allowed.
What you can trust in a browser
A typical widget uses the language’s random function, which is fine when nobody is attacking the draw. It is not fine when the number is a lottery with a prize, a password, or a cryptographic nonce. Those jobs need a generator built for that job. Atmospheric-noise services exist for groups that want an external, non-seeded source they can all look at. Your language’s rand is not that source.
An online generator that hides its range is a magic trick. Write the ends down, then click. Refresh the page and you may get a new sequence. That is normal. It is also why you save the output if the draw matters. Do not argue from memory about what the page showed. The saved line is the draw. The memory is not.
If you are drawing in front of a class, project the bounds, then the result. If you are drawing in a chat, paste both. Fairness arguments start when the range was never written down. The generator cannot fix that after the fact.
Questions and answers
- Is a random number generator online different from an app on my phone?
- The job is the same: a number in a range. “Online” only means you are using a page. Check the bounds on either one.
- Can I use it to pick a password?
- Not if it is an ordinary widget. Password generation needs a secret-grade source and a place to store the result. A classroom spinner is not that.
- Why did I get the same number twice?
- Independent draws allow repeats. Use a shuffle or a no-repeat mode if you need unique values.
Related guides
Address random generator
An address random generator builds a fake street line so you do not invent one by hand. Searches for random address generator, address generator random, and a New York variant still want a sample, not
Alphabet random generator
An alphabet random generator shuffles the letters of an alphabet into a new order. For English that is a permutation of A through Z, each letter once.
Animal generator random
An animal generator random pick is one animal name drawn from the tool’s list. Each click returns one animal from that list, not a living creature and not a complete catalog of Earth.