MathGroup Archive 2005

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

Search the Archive

Re: The two dices

  • To: mathgroup at
  • Subject: [mg54575] Re: The two dices
  • From: "Paul" <wallbridge at>
  • Date: Wed, 23 Feb 2005 03:11:47 -0500 (EST)
  • References: <cvc8dt$qte$>
  • Sender: owner-wri-mathgroup at

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