Sum of roll of N dice
|
05-04-2018, 07:32 AM
Post: #27
|
|||
|
|||
RE: Sum of roll of N dice
(05-04-2018 06:09 AM)Csaba Tizedes Wrote: N×3.5 was my first intuitive thought about it. That's not what is being sought here. What is desired is a program which simulates rolling N dice and returning the total of the numbers on their faces. So different runs would get different results (just like throwing N dice gets different results). This task has been programmed a zillion times in every programming language... but always by generating N random numbers between 1 and 6, and adding them all together. My question is: How can a program be written which generates only ONE random number, and then somehow turns it into a number which is statistically indistinguishable from the total of N dice rolls? I'm not looking for a single value (that's trivial). Nor am I looking for a way to add N random integers (also trivial). I'm looking for a way to simulate getting the total on N rolled dice, but using only ONE random number to generate the "total" directly (without generating any of the individual dice throws). (05-04-2018 06:09 AM)Csaba Tizedes Wrote: I think the Joe Horn's question is not exact. I hope my attempt above was more clear. <0|ɸ|0> -Joe- |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 8 Guest(s)