We studied the rand() and srand(int) library functions. The function rand() returns pseudorandom numbers. What does pseudorandom mean? What is srand for?

a) Repeated calls to the rand() function returns a string of numbers that are mostly
different but they aren’t random in any sense.
b) Pseudorandom numbers are things that resemble numbers but aren’t numbers.
c) In scientific use the word pseudo means resembling. A pseudorandom number
sequence resemble random number sequence, but are not strictly random.
d) The function srand(arg) is a helper function for rand(). It must be called
with the same argument, just before rand(), every time rand() is called.
e) The function srand(arg) is the seeding function for rand(). Each call to s
srand(arg) with a different argument enables a sequence of calls to rand()
to generate a different sequence of pseudorandom numbers.


c) In scientific use the word pseudo means resembling. A pseudorandom number
sequence resemble random number sequence, but are not strictly random.
e) The function srand(arg) is the seeding function for rand(). Each call to s
srand(arg) with a different argument enables a sequence of calls to rand()
to generate a different sequence of pseudorandom numbers.

Computer Science & Information Technology

You might also like to view...

What process group within the ISO 12207 standard consists of the traditional development lifecycle process activities?

A. Project enabling B. Software implementation C. Quality assurance D. Software integration

Computer Science & Information Technology

Which of the following color modes offers the largest number of possible colors?

a. Grayscale b. Indexed c. RGB d. CMYK

Computer Science & Information Technology

When a peripheral device is connected or disconnected while the host device is operating, it is called hot-plugging.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which of the following, when included, distorts the effectiveness of charting data points?

A. Too many series B. Too many data points C. Too much variance in the values of the data D. Aggregates

Computer Science & Information Technology