in reply to Lottery using arrays

Since it obviously is homework ... work with your instructor and perhaps your classmates to come up with your solution, even if it is possible to find your answer somewhere on the Internet.