Ugh, seems to me like this is all he needs:


int a = r.nextInt() % 51 + 100;