You are on page 1of 2

Documentation for the HP33S program Shuffle, by James Batek

There are three sizes of the program, able to shuffle up to 185, 74, or 37
items, with label savings for the smaller sizes. (So you can put more
programs on the device at the same time, if you want.) All three versions are
included under this title.

The 185 size occupies 24 labels, the 74, 11 labels, and the 37, 7 labels, out of
26 total labels. The specific labels so occupied are, respectively, A-X, A-K,
and A-G.

The three sizes all function exactly the same. Here are instructions in loading
and using any of the programs:

Before starting to enter the program, make sure that the needed program
labels are free.

Enter the program into memory following the instructions given in the
HP33S user's guide. The checksums for each program follow its code listing.

To begin operation, press XEQ A.

The program prompts for entry of variable C, the size of the sample to be
shuffled.

Enter your value of C, then press run/stop (R/S).

If your value of C is outside the range of the program capacity, flag 4 will be
raised. Another R/S will exit the program. Otherwise, program execution will
begin.

The calculator displays two numbers at once. The top number is the y-
register. The bottom number is the x-register. The shuffled output of the
program is displayed one x-register, y-register pair at a time. The y-register
begins at 1 and advances by 1 with each result. The x-register displays the
random value. Press R/S after each display pair to get to the next one.
Flag 1 will be raised during display of actual results, and only then, so that
unintentional stops (such as if your calculator is old and the keys don't
function cleanly) can be easily disregarded.

Following the last displayed result, R/S will bring up flag 4, signaling end of
program operation. Another R/S will exit the program.

You might also like