Newsgroups: rec.arts.int-fiction
Path: nntp.gmd.de!news.ruhr-uni-bochum.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!ka.sub.net!blackbush.xlink.net!tank.news.pipex.net!pipex!news.be.innet.net!INbe.net!news.nl.innet.net!INnl.net!hunter.premier.net!news-res.gsl.net!news.gsl.net!nntp.coast.net!news.kei.com!newsfeed.internetmci.com!in3.uu.net!world!olorin
From: olorin@world.std.com (Mark J Musante)
Subject: Re: [TADS] (Again?  Oy!) Random # Generation.
Message-ID: <DvILvI.EGu@world.std.com>
Organization: The World @ Software Tool & Die
X-Newsreader: TIN [version 1.2 PL2]
References: <4tebq4$khe@agate.berkeley.edu> <4tengq$paq@nntp4.u.washington.edu> <DvBAqw.J9t@world.std.com> <3200072A.A11@cosc.canterbury.ac.nz>
Date: Fri, 2 Aug 1996 14:35:42 GMT
Lines: 16

Greg Ewing (greg@cosc.canterbury.ac.nz) wrote:
> Mark J Musante wrote:
> > I've got a feeling there's something in the generator that prevents it from
> > returning the same value more than twice in a row.
> If this is true, then it's been BROKEN! Successive
> random numbers should be independent. If I want a
> correlated sequence I'll arrange for it myself,
> thank you very much!

After doing some digging (i.e. reading the 2.2 manual), I found that TADS now
supplies a "randomize()" function which enables a better random number
generator.  This one *DOES* allow the same number more than twice.  Just put it
somewhere in the beginning of the code (like the init() fucntion), and things
will be *much* better.

 - Mark
