Write statements that will display a random number from each of the following sets:

a) 2, 4, 6, 8, 10.
b) 3, 5, 7, 9, 11.
c) 6, 10, 14, 18, 22.

```
a) System.out.println(2 + randomNumbers.nextInt(5) * 2);
b) System.out.println(3 + randomNumbers.nextInt(5) * 2);
c) System.out.println(6 + randomNumbers.nextInt(5) * 4);
```

Computer Science & Information Technology

You might also like to view...

A(n) ________ is a hierarchical representation of paragraphs that are recognized by Word by nonprinting, end-of-paragraph marks

A) report B) sentence C) outline D) document

Computer Science & Information Technology

An Excel ________ is a series of rows and columns that contains related data that is managed independently from other data in the worksheet

A) pane B) tab C) sheet D) table

Computer Science & Information Technology