HP Forums
(200LX) N Dice with M Faces - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: General Software Library (/forum-13.html)
+--- Thread: (200LX) N Dice with M Faces (/thread-8418.html)



(200LX) N Dice with M Faces - Gerald H - 05-29-2017 07:35 AM

Entered as a solver function, enter number of dice under

Dice

& number of equally probable faces of each die as

Faces.

nb Faces does not have to be geometrically possible, any positive integer value is valid.

Actuate

Throw

to return the sum of the thrown dice.

nb SIGMA is Greek capital sigma.

Code:

Throw=SIGMA(i,1,Dice,1,IP(Faces*RAN#)+1)