public int getRandomNumber(int min, int max) { return (int) ((Math.random() * (max - min)) + min); }
Random r = new Random(); x = 10 + r.nextInt(11);