A Universal Random Number Generator.
Rahul Dhesi
dhesi at bsu-cs.UUCP
Fri Feb 24 07:10:42 AEST 1989
In article <7354 at pyr.gatech.EDU> naras at stat.fsu.edu (B. Narasimhan) presents
a universal random number generator that includes the definitions:
>#define CONST_2 362436
>#define CONST_3 7654321
>#define CONST_4 16777213
Better make these long, with an L suffix. Else some compilers I've
encountered will assume they are 16-bit ints, and truncate them
accordingly.
--
Rahul Dhesi UUCP: <backbones>!{iuvax,pur-ee}!bsu-cs!dhesi
ARPA: bsu-cs!dhesi at iuvax.cs.indiana.edu
More information about the Comp.lang.c
mailing list