Question
Question1: using sage math The lottery game Mega Millions is played by selecting 5 unique numbers in range 1 - 70 and an additional number,
Question1: using sage math
The lottery game Mega Millions is played by selecting 5 unique numbers in range 1 - 70 and an additional number, called mega ball, separately selected in range 1 - 25. Write a Sage function called MegaMillions() which can simulate a single Mega Million game drawing as described above. That is, the function returns a list in form [a,b,c,d,e,[m]], where a,b,c,d,e are the unique random integers, selected in range 1 - 70 and m (note the double list) is the mega ball selected in range 1 - 25. Make the numbers a,b,c,d,e appear sorted in the list, such that a < b < c < d < e. As part of your answer include a sample lottery drawing below the function as a Sage comment.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started