New Random Number Generator
Tim Rowledge
tim at sumeru.stanford.edu
Wed Jul 31 04:34:18 UTC 2002
Ian Piumarta <ian.piumarta at inria.fr> is claimed by the authorities to have written:
> On Tue, 30 Jul 2002, Tim Rowledge wrote:
>
> > OK, I have a working trivial plugin for this that just does a 30bit int
> > for now. Seems to work ok - making a bag of 1000 values suggests it at
> > least does a tolerable job. Though it does bother me a bit that in a
> > whole load of tests I've not seen any number with less than a half-dozen
> > digits.
>
> Shouldn't you be expecting slightly less than 1 in 10,000 to be < 6
> digits? Make a Bag of 100,000 of 'em and see if you get 10 or so less
> than 10^6.
Err... guess so. I got 9 elements < 100000 out of 100000 randoms. I'll
let somebody far more anal retentive than I do a ful anal-yis.
tim
--
Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
Useful random insult:- Her dentist went deaf from the drill's echoes.
More information about the Squeak-dev
mailing list
|