Random Number Generator NZ
This tool is an all-in-one random number generator with six modes: a single number, a number set, NZ Lotto lines, dice, a coin flip, and a random list picker, covering almost any everyday need for randomness on one page. For a single number, enter a minimum and maximum and choose whether to include decimals and how many decimal places; the tool draws one unbiased result and keeps a running history of recent draws. The number set mode lets you set how many numbers to draw, the range, whether repeats are allowed and whether results are sorted, useful for raffles or picking a sample from a list. The NZ Lotto tab draws lines for Lotto, Powerball, Strike or Keno in the correct format, with a bonus ball or Powerball number where relevant, though it is for fun only and does not improve your odds in the real draw. The dice roller rolls any number of D4 to D100 dice and totals them, the coin flip gives heads or tails with a running tally, and the list picker takes your own list of names or items, one per line, and randomly selects one or more without repeats if you choose. Every result comes from your browser's random function, which is fine for games, classroom draws and sampling, but is not cryptographically secure, so do not rely on it for anything security related.
This generator produces random numbers for entertainment only. It does not improve your odds of winning. All Lotto results are determined by the official NZ Lotteries draw machines.
How the random number generator works
This generator uses JavaScript's Math.random() function seeded by the browser's cryptographic random source where available. While not suitable for security-critical applications, it produces statistically unbiased results for all practical everyday purposes including games, classroom draws, lottery number selection, and statistical sampling.
True randomness means that every outcome is equally likely regardless of past results. If you have generated the number 47 ten times in a row, the eleventh result is still equally likely to be 47 as any other number. Past results have no influence on future ones. This is often counterintuitive but is a fundamental property of random number generation.
Uses for a random number generator
Lottery and games
The NZ Lotto draw uses 6 numbers from 1 to 40 plus a Bonus Ball. This generator picks those numbers randomly. Statistically, randomly generated numbers have exactly the same chance of winning as any numbers you choose yourself, because every combination of 6 numbers from 40 is equally unlikely. There are 3,838,380 possible Lotto combinations. The odds of matching all 6 are approximately 1 in 3.8 million per line.
Classroom draws and decision making
Teachers use random pickers to select which student presents first, form random groups, or assign questions. This is fairer than the teacher choosing because it removes any perception of bias. Entering all student names into the list picker and selecting one gives a fully random, demonstrably fair result.
The same technique works for any group decision: who goes first in a board game, who does the dishes, which restaurant to go to. Enter all the options and let the generator decide.
Statistical sampling
In research, a random sample requires that every member of a population has an equal chance of being selected. If you need to select 20 people from a list numbered 1 to 200, generating 20 unique random numbers between 1 and 200 gives you a simple random sample. This is the basis of many scientific and market research methods.
Dice rolling for games
Board games, tabletop role-playing games (such as Dungeons and Dragons), and many party games require dice rolls. The standard gaming die is a D6 (six sides, numbered 1 to 6). Role-playing games use D4, D8, D10, D12, and D20 dice as well. This generator rolls any number of any die type and shows the total, which is exactly what most game mechanics require.
About NZ Lotto
New Zealand Lotto is operated by Lotto NZ (NZ Lotteries). Draws are held on Wednesdays and Saturdays. The Lotto draw picks 6 numbers plus a Bonus Ball from 40 balls numbered 1 to 40. Powerball adds a separate Powerball number from 1 to 10. Strike requires matching 4 numbers in the exact order drawn. All of these can be simulated with this generator. Tickets must be purchased through official Lotto NZ outlets or the MyLotto website at lotto.co.nz. This generator is not affiliated with Lotto NZ in any way and does not affect real draw results.
Who this tool is for
This tool is for anyone needing random numbers for a prize draw, a game, sampling, or testing.
What this tool assumes
- The range and quantity you set.
- It uses your browser's pseudo-random generator, which is not cryptographically secure, so do not rely on it for security or certified gambling.
- Each number is drawn independently.
Related tools and guides
- Random team generator: split a list into balanced groups.
- Probability calculator: the odds behind a random draw.
- Password generator: random strings rather than random numbers.
Related calculators
- Random Picker Calculator: pick a Random Winner from Any List.
- Random String Generator: Generate Secure Random Strings Online.
- Random Team Generator: Create Balanced Teams from a Name List.
- Regex Escape Tool NZ: Escape Special Characters for Regex.