rpjday wrote:
>
> On Mon, 19 Feb 2001, Bret Hughes wrote:
>
> > rpjday wrote:
> > >
> > > actually, if you examine the algorithm, the probability that line n
> > > will be chosen as the "new" random line as you read through the file
> > > is precisely 1/n, so all lines are equally likely.
> >
> > I don't think that is what is happening here. I don't think that all
> > lines are equally likely. To me and maybe I am being obtuse here (it has
>
> trust me, all lines are equally likely. rather than flog this non-redhat
> related issue on a redhat list, grab a copy of the "perl cookbook", it's
> explained on p. 284. admittedly, it's non-intuitive the first time
> you see it, but it does work.
>
Good enough
Bret
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list