What does the following statement do?

```
Math.floor( Math.random() * 12 );
```

a) This creates a random number from 0 up to and including 12.
b) This creates a random number from 0 up to but not including 12.
c) This creates a random number from 1 up to and including 12.
d) This creates a random number from 1 up to but not including 12.


b) This creates a random number from 0 up to but not including 12.

Computer Science & Information Technology

You might also like to view...

Object-oriented programming is a way of designing and coding applications such that interchangeable software can be used to build larger programs.

a. controls b. structures c. components d. languages

Computer Science & Information Technology

Write a statement for the following:

Read a string into character array variable state.

Computer Science & Information Technology

A list of items can be represented using SmartArt.

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

Computer Science & Information Technology

To declare variables and the VBA data types associated with those variables in a procedure a(n) ____ must be used.

A. Sub statement B. Declaration statement C. Dim statement D. Case statement

Computer Science & Information Technology