davidl@tekecs.UUCP (David Levine) (09/27/83)
I am looking for a good public-domain pseudo-random number generator written entirely in C. Here's the catch: it has to run on Un*x (Berkeley V7, version 4.1c) and be portable to a CP/M 2.2 system (Software Toolworks' C compiler version 2.0, with considerable i/o extensions to emulate stdio) with NO REALTIME CLOCK! I figure the best way to get pseudo-random numbers is to start with a 'seed' built into the program, then store the last number generated on disk as a new seed. Obviously, deleting the file with this seed in it would cause the program to start over with the original seed, but you can't have everything. Public-domain source, pointers to non-public-domain stuff I can study, or just advice would be appreciated. -- David D. Levine (...decvax!tektronix!tekecs!davidl) [UUCP] (...tekecs!davidl.tektronix@rand-relay) [ARPA]