Ruby using Sinatra and rest-client in order to create random number