Question: in c please 1. Name this program random. c- This program uses the pseudo-random number generator to generate a specific number of random numbers (integers)

in c please  in c please 1. Name this program random. c- This program

1. Name this program random. c- This program uses the pseudo-random number generator to generate a specific number of random numbers (integers) in the range of 0 through 99. The program first prompts for the number of random numbers to generate, then generates that many random numbers, and determines how many different numbers out of 100 numbers (0 through 99) were generated. To use the pseudo-random number generator, you first need to call the srand function declared in once to set the seed. Usually you use the current time as the seed, but for ease of grading, please call srand (0) to use 0 as the seed. Then use rand() %100 repeatedly to get random numbers in the range of 0 to 99, Please note different compilers may use different algorithms to generate random numbers. If you test your program on the cs-intro server, you should get the following results (from three executions). If you run your program on a Mac or PC, you may get different results. How many random numbers to generate 1 out of 100 numbers were generated after 1 attempts How many random numbers to generate: 10 9 out of 100 numbers were generated after 10 attempts How many random numbers to generate: 250 93 out of 100 numbers were qenerated after 250 attempts Hints: Use an array of 100 elements to store the number of times you've seen the numbers 0, 1,2,... 99 e

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!