|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I don't know how to make a Lotto Program that you have to get 6 numbers out of a range of 1 to 49. None must be repeated.
Does anyone have a clue on how to achieve this? The output must be done 5 times in a row. |
|
#2
|
|||
|
|||
|
Hey
You want 5 sets of 6 randomly generated numbers like this:
1 22 33 44 55 66 2 23 23 42 23 1 2 33 23 42 23 1 2 14 23 42 23 1 2 3 23 42 23 1 If so that can be relatively easily done using a 2 dimensional array and a couple loops. |
|
#3
|
||||
|
||||
|
I assume you'll wanat to sort the numbers as well...
definately a good looping exercise... JessieH, have you had a chance to try it yourself yet? present us with some code and we'll be better off to help ya. |
|
#4
|
|||
|
|||
|
java lotto help
can someone help me with a personal project for the lotto
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > Java Programming Lotto Number generated |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|