MathGroup Archive 2005

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

Search the Archive

Re: The two dices

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

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