WhimWheel

Random Number 1-9 Generator

A random non-zero digit for times tables, Sudoku practice and number games.

Instant number generator (1–9)

Your number

?

Uses your browser’s cryptographic random generator — every number in the range has exactly the same chance.

Number wheel 1–9

Edit entries (9)
Wheel options

Your number is

My saved wheels

Saved only in this browser (localStorage). Nothing is uploaded.

    Digits one to nine in the classroom

    A random number 1-9 gives you a non-zero single digit — exactly what you need for Sudoku practice, times-table drills (“multiply by a random number from 1 to 9”), mental-maths races and number-bond games in primary classrooms. It’s also great for nine-option decisions like choosing a square in noughts and crosses, a random inning or a random planet-sized topic list. Generate nine with No repeats to shuffle the digits 1–9, which is a handy way to create a random Sudoku row or a fair turn order for up to nine players.

    Nine digits, no zero

    The digits 1 to 9 are the building blocks of most primary maths games, because zero causes trouble. Multiply by zero and the drill is over. Put zero first and you don’t have a two-digit number anymore. That’s why teachers ask for “a random number from 1 to 9” when they mean “a single digit that’s actually useful.”

    Here are the routines where we’ve seen this range earn its keep.

    Times tables without the boring order

    Reciting the seven times table in order is a memory exercise, not a maths one. Kids learn the rhythm of “seven, fourteen, twenty-one” and fall apart when asked for 7 × 8 out of context. Random practice fixes that.

    The quickest version: fix one table on the board, then generate a number from 1 to 9 for each question. For a full mixed drill, generate two numbers per question and multiply them. A run of 20 random pairs from 1 to 9 covers a good spread of the 81 possible facts, and the history panel keeps a record so you can read the answers back.

    For older students, add a speed element. One student generates, the rest race to shout the product. Keep a note of which facts make the room go quiet. In our experience it’s usually something in the sevens and eights, but every class has its own nemesis.

    Sudoku and the 1 to 9 shuffle

    Every row, column and box in a Sudoku contains the digits 1 to 9 exactly once. If you set How many numbers to 9 with No repeats ticked, the generator gives you one random permutation of those digits: a valid Sudoku row on its own. There are 362,880 possible orders (9 factorial), so you’re unlikely to see the same one twice.

    That doesn’t build a whole puzzle, since the rows have to fit together. It is a neat way to show kids how many possibilities hide in one row, though, and it’s a fair way to set a turn order for up to nine players.

    The magic square of 15

    There’s an ancient puzzle called the Lo Shu square, a three-by-three grid of the digits 1 to 9 where every row, column and diagonal adds up to 15. Legend places it in China several thousand years ago. Here’s a version:

    492
    357
    816

    A good challenge for a maths club: generate nine digits with No repeats, write them into a grid in that order, and see how far from “magic” the result is. Then let students swap pairs until every line hits 15. It’s harder than it looks. Out of the 362,880 ways to fill the grid, only 8 are magic, and they’re all rotations or reflections of the one above.

    How random digits differ from real-world digits

    This is one of our favourite bits of maths, and the 1 to 9 range is perfect for showing it.

    If you look at the first digit of numbers from real life, like river lengths, town populations or the amounts on your bank statement, they’re not evenly spread. The digit 1 leads about 30% of the time, 2 about 18%, and 9 less than 5%. This pattern is called Benford’s law, after the physicist Frank Benford, who wrote about it in 1938 (the astronomer Simon Newcomb had spotted it back in 1881). Fraud investigators use it, because made-up figures often don’t follow it.

    Random digits from this generator follow a flat pattern instead. Each digit gets about 11.1%.

    Leading digitBenford’s lawUniform 1–9 generator
    130.1%11.1%
    217.6%11.1%
    312.5%11.1%
    49.7%11.1%
    57.9%11.1%
    66.7%11.1%
    75.8%11.1%
    85.1%11.1%
    94.6%11.1%

    A lesson idea: have students collect the leading digits of 100 country populations from an atlas, then generate 100 digits here, and compare the two tallies. The difference jumps off the page.

    Odds for a single digit

    Probability facts for random numbers from 1 to 9
    FactValue
    Possible results9 (1 to 9, inclusive)
    Chance of any one number1 in 9 = 11.1%
    Even numbers / odd numbers4 even (44.4%) · 5 odd (55.6%)
    Prime numbers in range4 (44.4% chance of a prime)
    Same number twice in 2 picks (repeats on)1 in 9 = 11.1%
    A chosen number appears at least once in 10 picks69.2%
    Picks until a repeat is more likely than not4 picks
    Average (expected) result5
    Average picks to hit one specific number9

    Small games with nine options

    • Noughts and crosses with a twist. Number the squares 1 to 9 like a phone keypad. Each player’s move is chosen by the generator. If the square’s taken, generate again. It’s chaos, and five-year-olds find it hilarious.
    • Number bonds to ten. Generate a digit, and the class shouts the number that makes ten with it.
    • Baseball innings. A regulation game has nine innings, so trivia nights sometimes use 1 to 9 to pick an inning for a question.
    • Nine-person turn order. Board games rarely go past six players, but party games and reading circles do.

    If you need zero included, the 0 to 9 generator adds it back in. And when one digit isn’t enough, the 1 to 10 page is the classic “pick a number” range.

    Nine-square seating

    One more classroom trick. Arrange nine desks in a three-by-three block for group work, number them like a phone keypad, and generate where each student sits for the day. It mixes up who works together without any of the drama of letting kids pick. Middle seat, number 5, tends to become the coveted one.

    Digit sums and a party trick

    Here’s a trick to finish on. Generate any three numbers from 1 to 9, put them together to make a three-digit number, then reverse it and subtract the smaller from the larger. If the result has only two digits, put a 0 at the front. Now reverse that and add. The answer is always 1,089 unless all three digits were the same or the first and last digits matched (then you get 0). Students are convinced the generator is rigged. It isn’t; the maths just funnels everything to the same place.

    Digit picker FAQ

    How do I get a random digit including 0?

    Use the 0–9 generator, which includes zero and gives each of the ten digits a 10% chance.

    Can I shuffle the digits 1 to 9?

    Yes — set How many to 9 with No repeats and every digit appears once in random order.

    Will random digits from 1 to 9 follow Benford's law?

    No, and that's the point. A fair generator gives each digit about 11.1% of the time. Benford's law describes the leading digits of many real-world datasets, where 1 shows up around 30% of the time. Comparing the two is a nice classroom exercise.

    Published · Last updated by the WhimWheel team.

    Browse all numbers, dice & cards

    Featured on