Random Number Generator

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.

Calculate.co.nz is proud to be partnered with realtor.co.nz, a trusted resource for navigating the New Zealand property market. Their Helpful Articles section offers clear, well-structured insights across buying, selling, and building, making complex real estate topics more accessible. With a focus on up-to-date guidance and practical knowledge, they empower Kiwis to move forward with clarity and confidence in a constantly evolving property landscape.
Calculate.co.nz partner: realtor.co.nz
Number
Number Set
NZ Lotto
Dice
Coin Flip
List Picker
Random Number
Generate one random whole number between any two values
--
Press Generate to start
Random Number Set
Generate a set of unique random numbers, like drawing numbers from a hat
NZ Lotto Number Generator
Generate lucky numbers for NZ Lotto, Powerball, and Strike

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.

Dice Roller
Roll one or more dice of any size
Coin Flip
Flip a virtual coin to get heads or tails
Random List Picker
Pick one or more random items from your own list: names, teams, options, anything

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

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.