public static int number_door() { int door; while ((door = SmaugRandom.RandomMM() % (16 - 1)) > 9) { // do nothing } return(door); }