From: combee AT cambridge DOT scr DOT slb DOT com (Leendert Combee) Message-Id: <199708181053.LAA07566@tartan.scr.slb.com> Subject: Re: True random numbers. To: xyy AT infonie DOT be.\i (Zampelli St\iphane) Date: Mon, 18 Aug 1997 11:53:40 +0100 (BST) Cc: djgpp AT delorie DOT com In-Reply-To: <01bca8e4$2797c940$165e4ec2@xyy> from "Zampelli St\iphane" at Aug 14, 97 07:07:59 pm Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk > > Can anyone show me a example with srandom, rand, and random functions in > order to use *true* random numbers ? > There is *no* such a thing as true random numbers on a computer. Any sequence is always pseudorandom, and the randomness properties depend a lot on the particular randomgenerator used (most attempt to simulate an uniform distribution). You best do two things: - use info to look up the correct syntax for these functions - to get started quick, search the the mail archive (www.delorie.com), this subject has come up so many times before... - read 'numerical recipies in C' which has whole section devoted on good random # generators