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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!