Random Number Generator
Your input stays in your browser and is never sent.Generate random numbers in any range. Choose how many, whether to avoid duplicates, the number of decimal places and the sort order. Handy for raffles and drawing numbers.
- Enter
- See the result
Enter a range and press “Generate”.
What is the Random Number Generator?
The Random Number Generator picks numbers at random from a range you set. Use it for raffles, drawing numbers, preparing test data or number-guessing games.
With SOKUFU’s Random Number Generator you can set the minimum, maximum and count, and also choose to avoid repeats, the number of decimal places and the sort order.
No account or login. Free to use as often as you like.
How to use the Random Number Generator
- Enter the rangeEnter the minimum and maximum. Negative numbers and decimals are supported.
- Choose the optionsSet the count and the number of decimal places, then choose whether to avoid repeats and the sort order.
- GeneratePress “Generate” to see the result. You can copy it one per line or comma-separated.
Features of SOKUFU’s Random Number Generator
- No repeated numbers
- Like a raffle, each number can be drawn only once. If you ask for more numbers than fit in the range, the maximum available is shown.
- Decimals too
- Choose up to 6 decimal places.
- Up to 1000 numbers
- Generate up to 1000 numbers at once.
- Sorting
- Choose “As drawn”, “Smallest first” or “Largest first”.
- Unbiased numbers
- Numbers come from your browser’s cryptographic random numbers, so every number in the range is equally likely.
- Runs in your browser
- Nothing you do here is sent to a server.
How random numbers work
Computers produce random numbers in two main ways: pseudo-random numbers calculated from a fixed formula, and cryptographic random numbers built from hard-to-predict values the operating system collects. This tool uses your browser’s cryptographic random numbers (crypto.getRandomValues).
When the source values don’t divide evenly by the width of the range, simply taking the remainder makes smaller numbers more likely. To avoid that, the tool discards the leftover values at the end and draws again.
Related tools to use with the Random Number Generator
- Dice RollerUse it when you want numbers in a dice range such as 1 to 6 or 1 to 20.
- Bingo Number GeneratorUse it when you want to draw numbers one at a time.
- Password GeneratorUse it when you want a random string for a password.
Random Number Generator FAQ
Can the minimum and maximum themselves come up?
Yes. Both the minimum and the maximum are part of the range. For 1 to 10, both 1 and 10 can appear.
Can I avoid repeated numbers, like in a raffle?
Yes. Tick “Don’t repeat a number”. You’ll get an error if the count is larger than the number of values in the range.
Does it support negative numbers and decimals?
Yes. The minimum and maximum can be negative. If you set decimal places, you get decimals up to that many places.
Can I use it for cryptography or security?
The numbers come from your browser’s cryptographic random source, but for important keys or passwords, use a dedicated tool or another trusted method.
Is anything I do sent to a server?
No. Numbers are generated entirely in your browser and nothing is sent outside.
Related tools
- Japanese Name GeneratorGenerate random Japanese names by combining common surnames and given names. Choose male or female names; each is shown in Latin letters with its kanji. Handy for naming characters in stories and games.
- Username GeneratorGenerate random usernames for games and social media. Choose English word pairs or random letters, and set the separator, capitalization, trailing digits and length.
- Dummy Image GeneratorMake a placeholder image on the spot by choosing its width, height, colors and text. Save it as PNG, JPG, WebP or SVG, or copy it as a data URI.
- CSS Gradient GeneratorBuild linear, radial and conic gradients by moving the angle and color stops, then copy the CSS. The CSS shown is exactly what the preview uses.
- Gradient Image GeneratorTurn a linear, radial or conic gradient into an image of any size and download it as PNG, JPG or WebP. Handy for backgrounds and wallpapers.
- Tailwind Color GeneratorBuild the 11-step Tailwind CSS palette (50 to 950) from one base color, and copy it as @theme (v4), tailwind.config (v3) or a plain HEX list.
- Markdown Table GeneratorBuild a Markdown table by choosing rows and columns. Paste from Excel or Google Sheets, and export as HTML or CSV too.
- Digital Stamp CreatorMake round, square, or date hanko stamps and save them as transparent PNG images.
- Japanese Resume (Rirekisho) BuilderMake a JIS-standard Japanese resume (rirekisho) PDF, with era dates and an ID photo.
- Schema Markup GeneratorCreate JSON-LD schema markup by filling in a simple form. Local business, organization, article, FAQ and breadcrumb.
- QR Code GeneratorMake a QR code from a URL, text, Wi-Fi login and more. Change the colors, dot shape and add a logo.
- Dice RollerRoll dice in your browser. Pick the number of sides, from 4 and 6 to 20 and 100, and roll 1 to 100 dice at once. The total and a history of your rolls are shown.
- Coin TossFlip a coin in your browser. Toss one coin or up to 1000 at once, and see the running count of heads and tails and the percentage of heads.
- Bingo Number GeneratorDraw bingo numbers one at a time. No number comes up twice, and you can use 75 balls, 90 balls or any maximum you like.
- Bingo Card GeneratorMake 5×5 bingo cards, up to 24 at once, and print them as they are. Numbers come from the standard range for each column without repeats, and you can choose whether the center is a free space.
- Roulette WheelA simple online roulette wheel: type your options and spin. Edit anywhere from 2 to 100 options, and remove each winner as you go if you like.
- Conversation Topic RouletteSpin a wheel to pick something to talk about at a meetup, party or team call. Over 20 easy topics are included, and you can add your own.
- Drawing Prompt RouletteSpin a wheel to choose what to draw next. Over 30 prompts that pair a subject with a scene are included, and you can rewrite them for practice or events.
- Dinner RouletteSpin a wheel to decide what to make for dinner tonight. Over 20 easy home-cooked dinners are included, and you can swap in your family's favourites.
- Restaurant RouletteSpin a wheel to decide where to eat out. Over 20 types of restaurant are included, from sushi to pizza, and you can replace them with places near you.
- Random Name PickerEnter one name per line and draw as many winners as you need. Nobody can win twice, so it works for prize draws, raffles and deciding who goes first.
- Random Team GeneratorSplit a list of names into the number of teams you choose. Team sizes differ by at most one, and you can also pick a leader for each team.
- Amidakuji (Ghost Leg) MakerEnter names and outcomes to build a ghost leg lottery with random rungs. Tap a name to highlight the path it follows, and see where everyone ends up in a list.