Does it have anything to do with this other post?
http://www.javaprogrammingforums.com/whats-wrong-my-code/15996-generaterandomnumber.html#post67972