Scaling a random number as an integer value between 1 and N is accomplished using the expression ____.
A. 1 + (int)rand() / N
B. 1 + (int)rand() % N
C. (int)rand() / N
D. (int)rand() % N
Answer: B
Computer Science & Information Technology
You might also like to view...
Access 2016 uses a different file extension than previous versions of Access
Indicate whether the statement is true or false
Computer Science & Information Technology
Which error message would be the result if you accidentally type =VLOKUP instead of =VLOOKUP to build a lookup function?
A) #NULL! B) #NAME? C) #REF D) #NUM
Computer Science & Information Technology