Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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