title: Twitter Ruby Random Twitter ID
body: <p>I'm trying to randomly generate a twitter id and then follow that id if it meets the criteria. The problem is that when random_numbers doesn't actually exist it runs into error, I tried but i think i failed at trying to loop it until it finds one so is there a way to make random_number keep looping if that number doesn't link to a twitter id?</p>
  
  <pre><code>SET_VALUE = 0
  
  random_number = rand(100000...100000000)
  puts "#{random_number}"
  
  random_user = @client.user(random_number)
  
  puts "#{random_user}"
    while random_user == nil
      random_number = rand(100000...100000000)
      random_user = @client.user(random_number)
    end
  
  
  num_followers = random_user.followers_count
  @client.follow(random_user) if num_followers &gt; SET_VALUE
  
  puts "You have just followed #{random_user.screen_name}"
  </code></pre>