I need help trying to convert a number of formulaes into a VB Routines so I can include in a VB program.
I was trying to work out the "odds of winning various prize divisions" in the various lotto draws around the world, including Australian Lotto games. (Australian Lotto games have 2 supplementries)
I need to be able to input the following information
The number of balls in a particular Lotto Game
The number of balls drawn per game
The number of supplimentries balls drawn per game (eg 0, 1 , 2)
so that I can find out what the odds are of getting say 5 winning numbers and 2 supps etc.
I will be using dropdown list boxes as they would take up the least room. I want to be able to vary the information to cater for the various versions and prize divisions of the game.
I have been unable to get any books on the subject or find any web site where the explination is in a form that I can understand and use.
The only formulae I have been able to get is from the Australian Lotto Website www.tatts.com.au
They give a brief outline on how to work them out but unfortunatly I dont have the mathmatical ability to convert them into VB Routines so I can put into my VB program.
A brief summary of the information from the Website is: .............
A Tattslotto Draw has 45 Numbers
There are 6 winning Numbers Drawn as Well as 2 Supplimentry Numbers
Prize Division Winning Numbers Required For Tattslotto
One: All 6 winning numbers
Two: Any 5 winning numbers plus either supplementary
Three: Any 5 winning numbers
Four: Any 4 winning numbers
Five: Any 3 winning numbers plus either supplementary
Prize Division Tattslotto Probability Formula
45c6=(45 x 44 x 43 x 42 x 41 x 40)/(1 x 2 x 3 x 4 x 5 x 6)
One 6 winning numbers 45c6
Two 5 winning numbers plus either supplementary (45c6 / (6c5 x 39c1 - 37c1))
Three 5 winning numbers (45c6 / (6c5 x 37c1))
Four 4 winning numbers (45c6 / (6c4 x 39c2))
Five 3 winning numbers plus either supplementary (45c6 / (6c3 x 39c3 - 37c3))
The explination they give for the 6 winning numbers 45c6 is easy enough to construct, but I'm unable to understand the formulae enough to get any further.
I realize that this is no easy routine to construct, but it is beyond my ability to work it out, so I would appreciate any help at all.