PA#3: Fixing jimsrand()

If you are experiencing trouble with jimsrand(), i.e., if you receive the following message:

Enter TRACE:2 It is likely that random number generation on your machine is different from what this emulator expects. Please take a look at the routine jimsrand() in the emulator code. Sorry.

try changing line 186 in distvec.c from

double mmm = 2147483647; /* largest int - MACHINE DEPENDENT!!!!!!!! */

to

double mmm = 32767; /* largest int - MACHINE DEPENDENT!!!!!!!! */

If that still doesn't work, download testrand.c, compile and run it. It will produce a number and you should use that number.