I have the following code selecting a random type of terrain to generate:
public int type = 0;
Random rand = new Random();
type = rand.nextInt(3);
What are all the possible outcomes?
0,1,2 ?
1,2,3 ?
0,1,2,3 ?
I have the following code selecting a random type of terrain to generate:
public int type = 0;
Random rand = new Random();
type = rand.nextInt(3);
What are all the possible outcomes?
0,1,2 ?
1,2,3 ?
0,1,2,3 ?