rand.bmx 269 B

1234567891011121314
  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. Local count[13]
  5. For n = 1 To 3600
  6. toss = Rand(1,6) + Rand(1,6)
  7. count[toss] :+ 1
  8. Next
  9. For toss = 2 To 12
  10. Print LSet(toss, 5)+count[toss]
  11. Next