To answer your question, you would just store it in a List or an array. But that's not doing what I suggested.
Type: Posts; User: KevinWorkman
To answer your question, you would just store it in a List or an array. But that's not doing what I suggested.
Then just keep track of it like you would any other value: in a variable.
Do you need to save the number between program runs, or just until you close the program?
My first idea would be to use the Random class to generate the same random results each time. If you want to play a different game, use a different seed. To play the same game, use the same seed.
...
Java code? :eek:
Seriously though, it depends on the game, on how you implement the game, etc. Basically, we have no way of telling you how to do this without you being a lot more specific. What...