Intro to Random



Goal:

Learn how to use a Random object to generate random integers within specified number ranges.

Steps:

  1. Generate a random integer without limits.
  2. Generate a random positive integer with an upper limit.
  3. Generate a random integer with an upper and lower (positive) limit.
  4. Generate a random integer with an upper and lower (negative) limit