A Universal Random Number Generator.
Doug Gwyn
gwyn at smoke.BRL.MIL
Sat Feb 25 12:10:22 AEST 1989
In article <5873 at bsu-cs.UUCP> dhesi at bsu-cs.UUCP (Rahul Dhesi) writes:
-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.
Since that is in direct contradiction to K&R1's specs for integer
constants, one could make a strong case that such a compiler is not
worth using. Could you tell us whose compilers are thus broken,
so we could steer clear of them?
More information about the Comp.lang.c
mailing list