I can winz lottery
Ever wondered if you could beat the odds on the national lottery and become a millionaire? So is it just me???
You are going to build a simulation which will allow the user to play a number of lucky dip lines (6 random numbers). They can play any number from 1 to 1 million. The program will then roll 6 more random numbers which will be the lottery draw. You can assume the prize fund will be £12 million + £1 for every line you play.
You must also play 12 million lines to simulate other players. They will need their prizes calculated as well.
You will then calculate how much the user has won based on the following rules. Do not forget to pay out to the other 12 million players! –
3 numbers = £10
Then the remaining prize fund is taken and calculated as follows –
6 numbers – 52% of remaining fund
5 numbers – 16% of remaining fund
4 numbers – 22% of remaining fund.
This is not a easy task which is why it is worth so many points!

You need to log in or create an account to submit code!











