I'm running a method that auto-plays a text recursive tree game. The output is supposed to be different because I have two random things going on:
Random ran = new Random();
int test = ran.nextInt(counter);
If I manually run the program it will give different outputs each time I run it, but if I have a FOR loop running it 5 times in my Main method, it gives the same output 3 times and then different output 2 times.
I am assuming the java.random crap is using the same CPU time "second" in
order to calculate the randomness.
Can anyone verify this or is there another way to have it calculate via miliseconds or something?
Or is there a way to "pause" a program for like a few seconds?