Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Problem: Present the user of your program With two options om which they can select and perform tests on the random number generator. In both options...

A C language program with the given problem need be written, also an example execution of the code is given:

Problem: Present the user of your program With two options fiom which they can select and performtests on the random number generator. In both options the user will enter a seed value and an integernumber. The first option will begin with the seed given to determine if the desired integer is the first numbergenerated and will increment by one to the next seed value and will continue until a seed is identifiedthat generates as its first value the desired integer. In the second option the seed given will be used to continually generate numbers until the desiredinteger has been generated. Display the count of the numbers generated to reach the desired integer. For both options: o The acceptable range of seed values is 1 to 100,000 inclusive of both end points.. The acceptable range of integer values to be generated is fiom 0 to 100,000 inclusive of both endpoints. Example Execution #1: Random Number Testing Options 1. Find a seed 2. Find a number Enter option —> 1 Enter starting seed value —> 2500Enter desired integer number —> 55555 Given starting seed [2500] and desired number [55555]Seed that generates desired number first: 58226
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question