The Mega Millions lottery

Question Q6.7.3

The American Mega Millions lottery, at the time of writing, involves the selection of five numbers out of 75 and one from 15. The jackpot is shared among the players who match all of their numbers in a corresponding random draw. What is the probability of winning the jackpot? Write a single line of Python code using NumPy to pick a set of random numbers for a player.


Solution Q6.7.3