Generate Lotto Numbers

Learn to generate unique lotto numbers by using built-in methods in Ruby.

We'll cover the following

Problem

Write a program to generate six lotto numbers. Lotto numbers are between 1–49.

Get hands-on with 1400+ tech skills courses.