Random Number Generator class in Java