To generate numbers between two ranges add up the total number of possibilities. 1 - 10 gives us 10 and 50 - 60 gives us another 11, so 21 total. Then, generate a random number between 1 - 21.
int rn = (int)(1 + (Math.random() * 21));
If the random number is between 1 and 10, that is easy, you have your number. If it is between 11 - 21, then you have to do some work. First, you can use modulus to get the index of the number between 50 - 60. Since you have 11 possible values in that range, then mod the random number by 11 and add 50.
if (rn > 10) {
rn %= 11;
rn += 50;
}
System.out.println(rn);
This will print values between 1 - 10 and 50 - 60 inclusive.