add functions commit

Added random number generate function
Added user guess function hot/cold