static int nextRandomInRange(int Min, int Max) { int result = Min + (int) (Math.random() * ((Max - Min) + 1)); return result; }