Update randomNumber.rb

X must be defined for the while to be valid