p is Nuclear Decay Probability
http://hyperphysics.phy-astr.gsu.edu/hbase/nuclear/halfli2.html

i am trying to make n variable into a dynamically selectable slider.
but i can't seems to do it quickly.

my thoughts:
data is an array [n]*[n].
when n is changed in the slider, the data is not changed. why? what must be done to make an applet that allows of changes of number of atoms?