Jump to main content

Radioactive Dating: Take Your Programming Skills Nuclear


Areas of Science
Time Required
Short (2-5 days)
Familiarity with a programming language and basic programming algorithms
Material Availability
Readily available
No issues

Sabine De Brabandere, PhD, Science Buddies

*Note: For this science project you will need to develop your own experimental procedure. Use the information in the summary tab as a starting place. If you would like to discuss your ideas or need help troubleshooting, use the Ask An Expert forum. Our Experts won't do the work for you, but they will make suggestions and offer guidance if you come to them with specific questions.

If you want a Project Idea with full instructions, please pick one without an asterisk (*) at the end of the title.


Have you ever wondered how it's possible to so accurately date ancient artifacts? Geologists, paleontologists, archeologists, and anthropologists use a statistical process like radioactive isotope decay to date objects through a method called radioactive dating (also known as radiometric dating). To learn more about that method, check out the geology science project How Old Is That Rock? Roll the Dice & Use Radiometric Dating to Find Out. In that particular Project Idea, radioactive decay of isotopes is modeled by rolling dice. While that procedure is a great way to grasp the concept, it would certainly be a time-consuming and tedious process in the real world, even with samples of only 100 dice, which could scarcely be called a "large number." Furthermore, how many trials of rolling up to 100 dice over and over again—while accurately keeping track of the results—would you be willing to do by hand? The most motivated student will only get to a pretty small number of trials. Why not get the help of a computer to do this repetitious work for you?

A computer program can help you create a simulation of what would happen in real life. In this Abbreviated Project Idea, you will simulate the decay of radioactive isotopes. To get started, do you know how to program a random event like rolling a die or a decaying isotope? The tool you will use for this is called a pseudorandom number generator, which creates almost-random numbers on a computer. This will set you on the path to generating a radioactive decay curve on your computer. At the end of this Abbreviated Project Idea, you'll find some suggestions on how you can incorporate this information into a computer science project.

As you roll a standard six-sided die, you know each number from 1–6 has an equal chance, or probability, to land on top; but you cannot predict which exact number it will be on your roll. This type of process is called a random process. So how can you generate a sample of random numbers by using a perfectly logical machine like a computer? Most programming languages have a random number generator. This is a function that will provide you with an almost-random (or pseudorandom) number. Check out the references provided in the Bibliography section to get a feel for the difference between true randomness and computer-generated randomness, as well as some information about how computers generate these numbers. To test whether or not these pseudorandom numbers can help generate the outcome of rolling dice or predict how isotopes decay, start by looking up the random number generator function for your choice of programming language and read trough its specifications. As an example, in Microsoft® Excel® (a spreadsheet program), RAND() generates a random real number between 0 and 1. The RAND() function in Excel clearly is not going to do the job. You might be lucky; the programming language of your choice might be able to provide a random integer between 1 and 6—exactly what you would get from rolling one die. If not, do you know how to translate a random real number between 0 and 1 to a random integer between 1 and 6?

The algorithm below will guide you to the formula.

  1. First, transform the random real number between 0 and 1 to a random real number between 1 and 7. You can do this by multiplying the generated number by 6 and adding 1, as shown in the formula below:

    Formula 1:

    Can you verify this result in a random real number between 1 and 7?

  2. Then, round this number down to its nearest integer. In Excel, the function INT will do this for you. You can program this functionality yourself, or look up the function for rounding in your choice of programming language. Formula 2, below, lists the final formula for Excel.

    Formula 2:

    Can you verify this result is a random integer number between 1 and 6?

Now you only have to execute this formula 100 times, and store the numbers, to generate a sample of numbers you might get by rolling 100 dice.

The geology science project How Old Is That Rock? Roll the Dice & Use Radiometric Dating to Find Out can help you translate the result of rolling 100 dice to the decay of 100 isotopes and explains how to add a time component and how to generate a decay curve.

Start by generating a decay curve for an isotope that decays with a chance of 1/6 in 1 time unit.

Here are some suggestions to expand your exploration:


icon scientific method

Ask an Expert

Do you have specific questions about your science project? Our team of volunteer scientists can help. Our Experts won't do the work for you, but they will make suggestions, offer guidance, and help you troubleshoot.


If you like this project, you might enjoy exploring these related careers:

Career Profile
Computers are essential tools in the modern world, handling everything from traffic control, car welding, movie animation, shipping, aircraft design, and social networking to book publishing, business management, music mixing, health care, agriculture, and online shopping. Computer programmers are the people who write the instructions that tell computers what to do. Read more
Career Profile
Just as a doctor uses tools and techniques, like X-rays and stethoscopes, to look inside the human body, geoscientists explore deep inside a much bigger patient—planet Earth. Geoscientists seek to better understand our planet, and to discover natural resources, like water, minerals, and petroleum oil, which are used in everything from shoes, fabrics, roads, roofs, and lotions to fertilizers, food packaging, ink, and CD's. The work of geoscientists affects everyone and everything. Read more

News Feed on This Topic

, ,

Cite This Page

General citation information is provided here. Be sure to check the formatting, including capitalization, for the method you are using and update your citation, as needed.

MLA Style

Science Buddies Staff. "Radioactive Dating: Take Your Programming Skills Nuclear." Science Buddies, 20 Nov. 2020, https://www.sciencebuddies.org/science-fair-projects/project-ideas/CompSci_p045/computer-science/radioactive-dating. Accessed 18 May 2022.

APA Style

Science Buddies Staff. (2020, November 20). Radioactive Dating: Take Your Programming Skills Nuclear. Retrieved from https://www.sciencebuddies.org/science-fair-projects/project-ideas/CompSci_p045/computer-science/radioactive-dating

Last edit date: 2020-11-20
Free science fair projects.