| Thinus Pollard on Mon, 3 Apr 2000 21:26:03 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| RE: GLUG: Lotto |
my R0.02 (for what it's worth these days....) the chances of picking the correct 6 numbers in sequence.... 1/49 * 1/48 * 1/47 * 1/46 * 1/45 * 1/44 or 43!/49! which comes to... 1 in 10 068 347 520 pretty slim.... T > -----Original Message----- > From: owner-glug@xxxxxxxxxxxx [mailto:owner-glug@xxxxxxxxxxxx]On Behalf > Of hvisage > Sent: 03 April 2000 09:11 > To: Dwayne Bailey > Cc: Wayne Pascoe; glug@xxxxxxxxxxxx > Subject: Re: GLUG: Lotto > > > On Sat, Apr 01, 2000 at 08:05:56AM +0200, Dwayne Bailey wrote: > > > > > > > On the same thread, why not just brute force the lotto? There > are only a > > > finite number of possible combinations, so generate a list of every > > possible > > > combination, and if cost to enter all the combinations is > less than the > > > winnings, you have a profit... If not, back to random number > generation > > :-) > > > > 49^6 * R2.50 = +- R34.6 billion - enough to run a small African > country. I > > guess its back to random numbers > > Wrong: 49!/43! which IS less than 49^6 > 10068347520 < 13841287201 > The Logic: First pass there are 49 balls to choose from. > Second pass there are now only 48 balls > etc. > Thus: 49*48*47..*1=49! > But we'll stop after 6 tries: thus eliminate every thing after > the 49-6'th try > Thus: 49!/43!=49*48*47*46*45*44 > > But it's still a biggish value :( > > > or > > 49^5 * R2.50 = +- R706 million - still a lot. > > > > Regards > > Dwayne Bailey > > > > -- > > The Linux Warehouse - your source of Linux software > > http://www.linuxwarehouse.co.za/ > > info@xxxxxxxxxxxxxxxxxxxx > > tel/fax: +27-21-685 3754 > > > > > > --- > > To unsubscribe from this list: send the line "unsubscribe glug" in > > the body of a message to majordomo@xxxxxxxxxxxx > > -- > ------------------------ > Hendrik Visage > hvisage@xxxxxxxxxxxxxx > --- > To unsubscribe from this list: send the line "unsubscribe glug" in > the body of a message to majordomo@xxxxxxxxxxxx