logo       

Re: New Random Number Generator: msg#00797

lang.smalltalk.squeak.general

Subject: Re: New Random Number Generator

Ian Piumarta <ian.piumarta@xxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx, http://sumeru.stanford.edu/tim
Useful random insult:- Her dentist went deaf from the drill's echoes.





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise