Flip

Reset

Head

Tail

No. of Flips

Flip several times

sampleSpace: {2, 1}
outcome = RandomElement(sampleSpace)
head = true
tail = false
outcomes: {NaN}
mycounter = 1
a = BarChart(outcomes, 1)
nTrials: mycounter - 1
text3: "No. of Trials = " + nTrials + ""
inputTrials = 500
InputBox1 = Textfield(inputTrials)
sliderTrials = 1 (slider from 1 to inputTrials, step 1)
showCoin:true
text4 = RotateText("Frequency", π / 2)