Write a script (e.g.,called findmine) that will prompt the user for minimum and maximum integers, and then another integer that is the user’s choice in the range from the minimum to the maximum. The script will then generate random integers in the range from the minimum to the maximum, until a match for the user’s choice is generated. The script will print how many random integers had to be generated until a match for the user’s choice was found. For example, running this script might result in this output:
>> findminePlease enter your minimum value: –2Please enter your maximum value: 3Now enter your choice in this range: 0It took 3 tries to generate your number
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.