+     MathWorks.Com!!!cme
From: (Carl Ellison)
Newsgroups: sci.crypt

Subject: Re: modran(x)
Date: 25 Feb 1994 16:28:56 GMT
Organization: Stratus Computer, Marlboro MA
Lines: 13
Distribution: world
Message-ID: <2kl908$>
References: <> <2kj4is$akq@transfer.stratus.
+           com>

In article <2kj4is$>, I wrote:

>What you can do is compute (RAND_MAX % x) and if the raw value from ranno()
>is <= that value, toss it and ask for a new ranno().

Sorry -- this should be < rather than <=

 - Carl
 Carl M. Ellison                           
 RIPEM MD5OfPublicKey: 39D9860686A9F075A9A83D49589C677A
 Stratus Computer Inc.                               TEL: (508)460-2783
 55 Fairbanks Boulevard ; Marlborough MA 01752-1298  FAX: (508)624-7488