import java.util.Random;
//Custom method to get a random value
public int getRandomNum(int maxVal, int minVal){ Random rn = new Random(); return rn.nextInt(maxVal - minVal + 1) + minVal; }
No comments:
Post a Comment