Returned RandomNumberGenerator logic

RandomNumberGenerator returned to the previous logic - return number.
Returned user input check.