Well, you're asking it for a number between a number between 1 and 400, so that's what it's going to give you. To get a number between
a and
b, you'll want to do this:
random_number = random.nextInt(b - a) + a + 1;
See if you can figure out why that's the case.