static Random randGen = new Random();
int randomAng = randGen.nextInt(70) + 20;
Your code will generate random numbers from 20 to 89 inclusive. Read the API to find out why 90 will be excluded.
Type: Posts; User: Junky
static Random randGen = new Random();
int randomAng = randGen.nextInt(70) + 20;
Your code will generate random numbers from 20 to 89 inclusive. Read the API to find out why 90 will be excluded.