Question: Write a function lottery (x) that will generate two values (i.e. the function will return two values), a random integer number between 1 to x

Write a function lottery (x) that will generate two values (i.e. the function will return two values), a random integer number between 1 to x (if x is a real number, truncate to the closest whole number, e.g. if x is 3.2, its between 1 to 3), and a random real number between 0 to x.

Can someone help me in python please

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!