From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Random generator? Date: Wed, 30 Apr 1997 19:16:15 +0000 Organization: Two pounds of chaos and a pinch of salt Lines: 21 Message-ID: <33679A7E.63F7@cs.com> References: <2 DOT 2 DOT 32 DOT 19970429193847 DOT 006a0ec4 AT gate72> <5k76u0$j15 AT news DOT ox DOT ac DOT uk> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp213.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk George Foot wrote: > > John Aldrich told you about the libc functions; if you were more > interested in algorithms to generate random numbers I'd suggest you get > (or rather, borrow) Knuth's Seminumerical Algorithms - The Art of Computer > Programming, Volume 2. Half the book is about random numbers, how to > generate them, how random they are, etc. Only get this if you are heavily > into mathematics, though! A MUD server that I'm working with (yes, the one I keep going on and on about) uses something called the Mitchell-Moore algorithm, from Knuth Volume II. I don't quite understand the mathematics myself, but it's an exceptional RNG; I recommend looking at it closely. -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com | | "Starting flamewars since 1993" | http://www.cs.com/fighteer | | *** NOTICE *** This .signature is generated randomly. | | If you don't like it, sue my computer. | ---------------------------------------------------------------------