Why would you randomize a program by using srand? Under what circumstances is it desirable not to randomize?

What will be an ideal response?


The sequence of numbers produced by the random number generator differ each time function srand is called. Not randomizing is useful for debugging purposes—the programmer knows the sequence of numbers.

Computer Science & Information Technology

You might also like to view...

Queries that you create in Base are automatically translated into SQL code

Indicate whether the statement is true or false

Computer Science & Information Technology

The sort order of a report can be changed by using the ________

A) Page Setup tab B) Relationships Report C) Group, Sort, and Total pane D) Property Sheet

Computer Science & Information Technology

Relationships are established based on common fields

Indicate whether the statement is true or false

Computer Science & Information Technology

The most obvious limitation of midsquare hashing is ____.

A. its inefficiency B. the size of the key C. the high number of collisions D. the high processing requirements

Computer Science & Information Technology