Dice Throwing Simulator
Loading the math board and drawing, please wait…
This example demonstrates the statistical distribution of dice throwing results. It involves core math concepts like Probability & Statistics, Sequence, and Graphing. Construction highlights include using GeoGebra commands Sequence, SelectedIndex, If, and BarChart with objects like dice, freq, counter. Suitable for high school mathematics teaching, particularly for introductory probability and data analysis.
GeoGebra Commands & Parameters
Sequence(Element[freq, k], k, 1, (6 * dice) + 1) → freq2Sequence(Element[freq2, k] / n, k, 1, Length[freq2]) → relFreqSelectedIndex(graphMenu) → graphTypeIf(n ≟ 0, 0, Max[freq]) → fMaxSequence(k - 1, k, 1, (6 * dice) + 1) → diceSumBarChart(diceSum, relFreq) → relFreqChartIf(n ≟ 0, 0, Max[relFreq]) → relMaxBarChart(diceSum, freq2) → freqChartSequence(Text["" + (Element[relFreq, k]), (k - 1.3, Element[relFreq, k] + step)], k, 1, Length[relFreq]) → lbl2Sequence(If[Element[freq2, k] > 0, Text["" + (Element[freq2, k]), (k - 1.2, Element[freq2, k] + step)]], k, 1, Length[freq2]) → lbl