I'm throwing my two pence in. Would this work?
int previousRand = 0;
int newRand = 0;
Random rand = new Random();
int getAnotherRand(int range){
if(range == 0) {
return 0;
}
Type: Posts; User: Baldyr
I'm throwing my two pence in. Would this work?
int previousRand = 0;
int newRand = 0;
Random rand = new Random();
int getAnotherRand(int range){
if(range == 0) {
return 0;
}
This was my initial idea, also, but it fails because the returned value might now be out of range. A fix would only get messy, because there could be a very narrow range and whatnot.