DIY Dice Random Number Generator
📝 This post, DIY Dice Random Number Generator, was originally published in 2012 and has been updated with new information and classroom ideas.
I have a hard time throwing away anything that looks like it could become a teaching tool someday. 😂 One year after Easter, I found myself holding one of those clear plastic cartons that chocolate eggs come in. Instead of tossing it into the recycling bin, I tucked it away because I just knew I’d find a use for it eventually.
A few months later, my boys were tossing around a handful of rubber dice they had been playing with. Before someone got bonked on the head—or one of our pugs decided a die looked like a tasty snack—I scooped up the dice and dropped them into that empty egg carton.
Lightbulb moment! 💡
Without even trying, I had created a simple random number generator that turned out to be perfect for math practice. We’ve been using it ever since, and it’s still one of my favorite homemade math tools.
Why Use a Random Number Generator?
Don’t let the name fool you—it sounds much fancier than it really is! This DIY random number generator is simply a container filled with dice that creates a different set of numbers every time you shake it. Those numbers can be used for everything from place value and number sense to multi-digit addition, subtraction, and mental math games.
Best of all, it’s inexpensive to make, takes only a minute to put together, and kids love using it.
What You’ll Need
- A clear plastic egg carton or another see-through container with a lid
- 2–6 dice
- Paper and pencil (optional)

How to Use the Random Number Generator
🎲 Place the dice inside the container.
🎲 Close the lid securely.
🎲 Give it a good shake.
🎲 Open the container and remove the dice.
🎲 Line the dice up in the order they landed.
🎲 Now you’re ready to start creating numbers!

Ways to Use Your Random Number Generator
Here are some fun ways to use your random number generator.
Read and Build Numbers
Have your child read the number created by the dice. For example, if the dice show 2, 4, 3, and 1, the number would be 2,431.
Place Value Practice
Use the number to practice place value. Ask questions like, “What digit is in the hundreds place?” or “What is the value of the 3?” You can also have your child identify the number of thousands, hundreds, tens, and ones.
Biggest to Smallest
Rearrange the digits to create the largest possible number. Then read the number aloud.
Smallest to Biggest
Now rearrange the same digits to create the smallest possible number and compare it to the largest number.
Create Different Numbers
Challenge your child to make several different numbers using the same four digits. Which number is the greatest? Which is the smallest?
Number Strings
Add the digits together to practice mental math. For example, 2 + 4 + 3 + 1 = 10.
Multi-Digit Addition
Roll the dice twice to create two numbers. Then add the numbers together.
Multi-Digit Subtraction
Roll the dice twice to create two numbers. Place the larger number on top and solve the subtraction problem.
Compare Numbers
Take turns rolling the dice to create numbers. Read each number aloud and decide which is greater or less. For extra fun, keep score to see who wins the most rounds.
Looking for Even More Dice Activities?
If your students enjoy learning with dice, be sure to check out The Ultimate Guide to the Best Dice Games for Learning and More. It includes even more easy-to-prep activities and games that build number sense, fact fluency, place value, and other important math skills using one of the most versatile classroom tools around.
Wrapping Up
Sometimes the simplest household items can become the best teaching tools! This DIY random number generator takes just minutes to make, but it provides endless opportunities to practice place value, number sense, and computation in a fun, hands-on way. So before you toss that empty egg carton into the recycling bin, grab a few dice and give it a try—you might just discover your new favorite math tool.
If this is your first time visiting Boy Mama Teacher Mama, welcome!
Did you know that you can also find us on Facebook, Instagram, Pinterest, and Teachers Pay Teachers?
© Boy Mama Teacher Mama 2026
All Rights Reserved






This is AWESOME!! Thanks for sharing different ways to use the tool. I’m going to try these activities with a student I’m tutoring. She’s having a difficult time mastering number concept and this will be a fun way for her to practice.