From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: random #'s Date: Mon, 02 Dec 1996 08:06:15 GMT Organization: Oxford University Lines: 22 Message-ID: <32a28934.29578785@news.ox.ac.uk> References: <01BBDE40 DOT 57785E00 AT sky38 DOT dataplusnet DOT com> <329FF108 DOT 7ED4 AT cs DOT com> NNTP-Posting-Host: mc31.merton.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On Sat, 30 Nov 1996 00:32:08 -0800, "John M. Aldrich" wrote: >Michael Matczynski wrote: >> >> I wrote this program and it proves that it is an accurate random number generator. > >Gee, thanks for crediting me for the code that I gave you. Heh... It's always good to see credit given where it's due. Anyway, it's not really very useful... To really test the randomness, you should perform more sophisticated tests, such as the Chi-squared test, the Kolmogorov-Smirnov test, a less crude frequency test, and also some form of serial test, gap test, "poker" test, "Coupon-collector's test" (I love these names...), permutation test, run test, ... there are many. Which of these you bother with would depend on what you will be using the results for, of course... George Foot