Here you can find the source of randomAgain()
private static int randomAgain()
//package com.java2s; //License from project: Apache License public class Main { private static int randomAgain() { int r = (int) (58 * Math.random() + 65); if (r > 90 && r < 97) { return randomAgain(); }/*from w ww. j a v a2 s.c o m*/ return r; } }