I'm trying to create a class that returns a random number. However I want it to continue to return that same random number 4 times before finding a new random number and returning that 4 times and etc.
My problem is that I'm having trouble saving that random number in the class. Right now I'm trying to use an ArrayList to save that random number so I can return it four times, but I was wonder if anyone knew a better way I could do this.
My problem is that I'm having trouble saving that random number in the class. Right now I'm trying to use an ArrayList to save that random number so I can return it four times, but I was wonder if anyone knew a better way I could do this.