Which statements will generate random numbers between 0 and 1? Assume number is a double

A. num = rand()%1001;
ran = num/1000.0
B. num = srand()%1001;
ran = num/1000.0
C. num = rand(1001/1000)
D. num = srand(.001)
ran = num*1000.0;


A. num = rand()%1001;
ran = num/1000.0

Computer Science & Information Technology

You might also like to view...

The __________ property determines whether or not a control is active.

Fill in the blank(s) with correct word

Computer Science & Information Technology

The first row in a data source, containing field names, is called the:

A) merge field. B) filter. C) header row. D) record.

Computer Science & Information Technology

Word's ________ tool controls how words are split between two lines

A) Grammar B) Hyphenation C) Spelling D) Thesaurus

Computer Science & Information Technology

Which of the following is designed to get minimum business functions up and running as soon as possible?

a. Business continuity plan b. Disaster recovery plan c. Backup plan d. Fault tolerance plan

Computer Science & Information Technology