Sum of roll of N dice
|
05-02-2018, 06:41 PM
Post: #12
|
|||
|
|||
RE: Sum of roll of N dice
(05-02-2018 02:00 PM)Joe Horn Wrote: In CAS view of the HP Prime, this can be implemented in one line. Caution: "convert" must be typed in lowercase or it won't work. With a single random number you can also do : sum(convert(rand(6^N)-1,base,6))+N It works for N up to 1659 but it is much slower than the sum of N random numbers. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 8 Guest(s)