Random Generator
Random Number & String Generator
Random Number
Random String
How the random generator works
Pick a range or length
Set a minimum and maximum for a random number, or a length for a random string.
Generate
The tool uses your browser's cryptographically secure random number source to produce the value.
Copy the result
Copy the number or string for use in testing, sampling or generating identifiers.
Frequently asked questions
How random are the generated values?
Values are produced using the Web Crypto API's crypto.getRandomValues, a cryptographically strong source of randomness rather than a simple pseudo-random function.
What characters can appear in a random string?
Generated strings draw from uppercase and lowercase letters, digits, and the hyphen and underscore characters.
Is this suitable for generating passwords?
The randomness source is strong, but for passwords specifically, the dedicated Password Generator tool is built with password-appropriate options and formatting.