public static int myRandom(int upLimit, int downLimit) { return (int)(Math.random()*(upLimit-downLimit))+downLimit; }