{source}

<?php require_once JPATH_SITE.'/TTcustom/TT_contentparser.php'; $$parameters = array("topicname" => "06QuantumPhysics_20nuclear",      "modelname" => "ejss_model_decaychangeNweedice");  echo generateSimHTML($$parameters, "EJSS");
?>
{/source}

http://iwant2study.org/lookangejss/06QuantumPhysics_20nuclear/ejss_model_decaychangeNweedice/decaychangeNweedice_Simulation.xhtml

### Theory

Assume the number of radioactive nucleus is N(t) --- not yet decayed into daughter product.
Each nucleus has the same probability p (p<1) decayed into daughter product.
It means that dN(t)/dt= -p*N(t) , where dN(t) is the number of nucleus decayed into daughter product at time t.
The solution is N(t)=N0 e -pt = N0 e -(ln2/T0.5)) t where N(0) is total number of nucleus at time t.

Each box represent a nucleus.
This applet let you set the probability for a nucleus to decay and watch how the number of decayed nuclei (color changed to RED)  increased with time t.

{source}
<iframe width="420" height="315" src="https://www.youtube.com/embed/qlFN0Q35YOw" frameborder="0" allowfullscreen></iframe>
{/source}

{source}
<iframe width="560" height="315" src="https://www.youtube.com/embed/rIdBXFUU76s" frameborder="0" allowfullscreen></iframe>
{/source}