Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!bsu-cs!dhesi From: dhesi@bsu-cs.UUCP (Rahul Dhesi) Newsgroups: comp.lang.c Subject: Re: A Universal Random Number Generator. Message-ID: <5873@bsu-cs.UUCP> Date: 23 Feb 89 21:10:42 GMT References: <7354@pyr.gatech.EDU> Reply-To: dhesi@bsu-cs.UUCP (Rahul Dhesi) Organization: CS Dept, Ball St U, Muncie, Indiana Lines: 12 In article <7354@pyr.gatech.EDU> naras@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: !{iuvax,pur-ee}!bsu-cs!dhesi ARPA: bsu-cs!dhesi@iuvax.cs.indiana.edu