Exercise 05: Random Number Generation Exercise II

Date completed: 06/06/2018

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

  1. 2, 4, 6, 8, 10.
  2. 3, 5, 7, 9, 11.
  3. 6, 10, 14, 18, 22.

Solution

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