The American Mega Millions lottery, at the time of writing, involves the selection of five numbers out of 70 and one from 25. 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.
The probability of winning is one in \begin{align*} \left(\begin{array}{c}70 \\ 5\end{array}\right)\left(\begin{array}{c}25 \\ 1\end{array}\right) = \frac{70\cdot 69\cdot 68 \cdot 67\cdot 66}{1 \cdot 2\cdot 3 \cdot 4\cdot 5} \cdot 25 = 302575350 \end{align*} To pick five random numbers from 1-75 and one from 1-15:
In [x]: (sorted(np.random.choice(np.arange(1,71), 5, replace=False)),\
np.random.randint(25)+1)
([32, 41, 48, 51, 61], 19)