Random Integer Generator

Random Integer Generator
Loading the math board and drawing, please wait…
2013-06-03 01:35
In collections Probability & Statistics
This example is designed for probability simulations, generating a list of 100 random integers between 1 and a specified largest integer. It covers key concepts in probability and statistics, using commands like Sequence, Random, Textfield, TableText, Frequency, and Histogram. Suitable for teaching and learning probability and statistics.

GeoGebra Commands & Parameters

  1. Sequence(largest + 1) → L2
  2. Random(1, largest) → n
  3. Sequence(n, i, 1, trials) → L
  4. Textfield(trials) → inputBox3
  5. Textfield(smallest) → inputBox4
  6. Textfield(largest) → inputBox5
  7. Sequence(Element[L, i], i, 1, 10) → La
  8. Sequence(Element[L, i], i, 11, 20) → Lb
  9. Sequence(Element[L, i], i, 21, 30) → Lc
  10. Sequence(Element[L, i], i, 31, 40) → Ld
  11. Sequence(Element[L, i], i, 41, 50) → Le
  12. Sequence(Element[L, i], i, 51, 60) → Lf
  13. Sequence(Element[L, i], i, 61, 70) → Lg
  14. Sequence(Element[L, i], i, 71, 80) → Lh
  15. Sequence(Element[L, i], i, 81, 90) → Li
  16. Sequence(Element[L, i], i, 91, 100) → Lj
  17. TableText({La, Lb, Lc, Ld, Le, Lf, Lg, Lh, Li, Lj}) → text3
  18. Frequency(L2, L) → list1
  19. TableText({La, Lb, Lc, Ld, Le, Lf, Lg, Lh, Li, Lj}, "r") → Tlist
  20. Histogram(L2, L, true, largest / 20) → a

AI Drawing Prompt Reference

Generate a list of 100 random integers between 1 and a specified largest integer. Use a slider to input the largest integer, then generate the random number list. Divide the list into 10 parts, each containing 10 numbers, and display the numbers in each part. Count the frequency of each integer and draw a histogram.
The prompt above was compiled from the original drawing commands and is for reference only.