Question: Write a program to display a pseudo - random number and a 'true' random number. * * * There is no input for this program.

Write a program to display a pseudo-random number and a 'true' random number.
*** There is no input for this program.
(1) Without seeding the random number generator (which will default to a seed value of 1), generate and display a pseudo-random number
in the range of 1 to 100. Since the seed value defaulted to 1, the pseudo-random number will always be 84. Separate the words "pseudo-
random' from the value with a tab (??t).(5pts)
You will need to include the stdlib.h library for this step.
pseudo-random 84
(2) Seed the random-number generator with the system time, generate and display a 'true' random number in the range of 1 to 100. Since
the seed values was random, the 'true' random number will also be random. Again, separate the words from the number with a tab. (5 pts)
You will need to include the time.h library for this step.
write only in C please
Write a program to display a pseudo - random

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 Programming Questions!