MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: The two dices


If you change your theThrows calc to:

theThrows = Table[{a = dice[], b = dice[], a + b}, {n}]
theStats = Table[Count[theThrows[[All,3]], i], {i, 2, 12}]

it will work fine.This way you can see the random numbers being
generated and make sure that your random function is working ok.


  • Prev by Date: Re: The two dices
  • Next by Date: Re: pattern matching all list elements but last
  • Previous by thread: Re: The two dices
  • Next by thread: Printing numbers