title: How to create email address generator with Ruby?
body: <pre><code>  def emails
      i = 0
      number = rand(252...4350)
  
      males = ["tom", "jack", "adam"]
      females = ["elizabeth", "rose", "juliet"]
  
      surnameMales = ["oak", "yew", "timber"]
      surnameFemales = ["rosewelth", "gates", "jobs"]
  
      providers = ["gmail.com", "hotmail.com", "yahoo.com"]
  
      while i &lt;= 100 do
        @addresses &lt;&lt; 
      end
    end
  </code></pre>
  
  <p>What I want to do is pick a random number, name, surname and provider and put them all together + attach a random number at the end of the surname so that it looks, for example, like this: <code>rose.gates643@gmail.com</code>, but kind of got stuck at the point where I have to put the whole thing together. As you can probably tell, I want to create a <code>100</code> random emails for testing purposes.</p>
  
  <p>Can you please point me out how I could do what I have intended to do with <code>Ruby</code>?</p>