Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!tektronix!tekecs!davidl From: davidl@tekecs.UUCP (David Levine) Newsgroups: net.wanted,net.lang.c,net.micro.cpm Subject: Wanted: random number generator written in C Message-ID: <2200@tekecs.UUCP> Date: Tue, 27-Sep-83 12:23:24 EDT Article-I.D.: tekecs.2200 Posted: Tue Sep 27 12:23:24 1983 Date-Received: Wed, 28-Sep-83 19:49:00 EDT Lines: 14 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]