HP 33S Programming question “Dice roll”
It has been 20 years since I tried any programming. That was back in college when I had a 41cv and a lot more free time. Any way, I want to simulate roll of two dice, and then display both values on the screen (X and Y registers).
I wrote this program and it works fine;My question is how could I reduce the program length.D0001 LBL D Label D for Dice
D0002 RANDOM Generate Random number for seed
D0003 SEED Input seed
D0004 RANDOM Generate random number for dice (die)
D0005 6
D0006 *
D0007 1
D0008 +
D0009 IP Take integer portionD0010 RANDOM Roll second dice (die)
D0011 6
D0012 *
D0013 1
D0014 +
D0015 IP
D0016 STOP
I know it is not a big deal for this program, but would be very helpful for a larger program. Thanks Mike