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
You might also like to view...
Which files must be edited to change the name of a Linux PC (e.g., from PC1 to machine1) ?
What will be an ideal response?
Which of the following represents a way to delete e-mail messages from the user's Deleted Items Folder?
A) use the Delete Tool on the toolbar after selecting the message B) right-click on the Deleted Items folder and then choose the Empty Folder option C) select it and then press Delete D) all of the above
To select a paragraph style, you must select the entire paragraph
Indicate whether the statement is true or false
Where are macros recorded with the macro recorder stored?
A) The templates gallery B) The current workbook C) The Templates folder D) My Documents