rand.bmx 332 B

12345678910111213141516
  1. ' Rand.bmx
  2. ' Toss a pair of dice. Result is in the range 1+1 to 6+6.
  3. ' Count how many times each result appears.
  4. SuperStrict
  5. Local count:Int[13]
  6. For Local n:Int = 1 To 3600
  7. Local toss:Int = Rand(1,6) + Rand(1,6)
  8. count[toss] :+ 1
  9. Next
  10. For Local toss:Int = 2 To 12
  11. Print LSet(toss, 5)+count[toss]
  12. Next