Re: Guess the number of regular tournament golfers

2002-04-12 Thread Gareth McCaughan
Stephen Turner wrote: > On Tue, 9 Apr 2002 [EMAIL PROTECTED] wrote: > > From the recent "Career Money Leaders Update" post, > > I have extracted some statistics. > > > > Number of golfers who played 6/6 tournaments:1 > > 5/6 6 > >

Re: New Perl Quiz of the Week mailing list perl-qotw

2002-10-21 Thread Gareth McCaughan
On Monday 21 October 2002 7:56 pm, you wrote: > En op 21 oktober 2002 sprak Gareth McCaughan: > > I'm feeling very dim. What's wrong with the much simpler > > > > sub subst { (my $a=shift) =~ s/\$\d+/eval$&/eg; $a; } > > You have to replace '

Re: Permutations

2004-01-30 Thread Gareth McCaughan
On Thursday 29 January 2004 10:26 pm, J. Riley Bryant wrote: > Let PR(x,y,f(n)) be the Product of f(n) for x<=n<=y. > > Probability = PR(1,8,(1-(n!-1)/n!)^1e6) > > = (1-(0/1)^1e6) * > (1-(1/2)^1e6) * > (1-(5/6)^1e6) * > (1-(23/24)^1e6) * > (1-(119/120)^1e6) * > (1-(719/720)^1e6) * > (1