Question: Write a python code to generate following output: a ) GENERATE 5 0 0 0 RANDOM and unique numbers in separate text file AND SORT

Write a python code to generate following output:
a) GENERATE 5000 RANDOM and unique numbers in separate text file AND SORT
THEM
b) Your code should Generate a RANDOM NUMBER and find out where does this
generated number lies between in generated text file
Find out the time it takes to generate a random number in question b)
Example : If txt file has these numbers 6356,6360 serially, if your generated number is
6357, it should says 6357 lies between 6356 and 6360 in txt file.
 Write a python code to generate following output: a) GENERATE 5000

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!