HP Forums
(35s) Roll Two Dice at Random - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: General Software Library (/forum-13.html)
+--- Thread: (35s) Roll Two Dice at Random (/thread-22276.html)



(35s) Roll Two Dice at Random - Gamo - 09-04-2024 02:32 PM

This program is adapted from my HP-11C Roll Two Dice at Random

https://www.hpmuseum.org/forum/thread-11103.html

----------------------------------------------------------------

Usage: Enter [SEED] and keep pressing [R/S]

Display shown First and Second Dice with Total Amount by

[ X1.X2 E X ]

---------------------------------------------------------------
Example: 0.123456 [SEED]

[R/S] display [5.4 E 9]

First Dice is 5 and Second Dice is 4 Total is 9

[R/S] Display [6.2 E 8]
[R/S] Display [2.1 E 3]
---------------------------------------------------------------
Program:
Quote:0001 XEQ A001
0002 STO A
0003 XEQ A001
0004 STO+ A
0005 10
0006 รท
0007 +
0008 RCL A
0009 10^x
0010 x
0011 SCI 1
0012 RTN
A001 LBL A
A002 RAND
A003 6
A004 x
A005 1
A006 +
A007 INTG
A008 RTN

Gamo 9/2024