At this point, you have learned a lot about the basic workings of Swift. Let's take a moment to bring many of these concepts together in a single program. We will also see some new variations on what we learned.
The goal of the program will be to take a list of invitees and television shows and to ask random people to bring a show of each genre and to ask the rest to just bring themselves.
Before we look at the code, there are three small new features that we will use:
The most important feature is the ability to generate a random number. To do this, we have to import Foundation Framework ...