Advertisement
akosiraff

Lottery Number Generator

Mar 4th, 2014
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/lottery-number-generator/
  3. Lottery Number Generator
  4. Design a program that generates a 7- digit lottery number. The program should have an Integer array with 7 elements. Write a loop that steps through the array, randomly generating a number in the range of 0 through 9 for each element. ( Use the random function that was discussed in Chapter 6.) Then write another loop that displays the contents of the array.
  5. Download: http://solutionzip.com/downloads/lottery-number-generator/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement