Rolling Two Dice

Rolling Two Dice
Loading the math board and drawing, please wait…
2015-02-06 18:00
This example demonstrates the process of rolling two dice. The core mathematical concepts involved are probability and statistics. Using GeoGebra commands such as Frequency, Sum, Random, and BarChart, a frequency histogram of dice rolls can be generated. Suitable for middle school and above students to learn probability and statistics.

GeoGebra Commands & Parameters

  1. Frequency(sumlist) → freq
  2. Sum(freq) → b
  3. Unique(sumlist) → list1
  4. Random(1, 6) → dice1
  5. Random(1, 6) → dice2
  6. BarChart(sumlist, 0.8) → a
  7. Append("frequency", freq) → row2
  8. Append("sum", list1) → row1
  9. Append("relative freq", rel) → row3
  10. Append(row1, "total") → row1a
  11. Append(row2, b) → row2a
  12. TableText({row1a, row2a, row3}, "c_") → text2

AI Drawing Prompt Reference

Create a frequency histogram for two dice rolls. First, generate random numbers from 1 to 6 to represent the points of two dice. Then, calculate the frequency and unique values of all dice rolls. Finally, display a table showing the frequency and relative frequency.
The prompt above was compiled from the original drawing commands and is for reference only.