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 <= 100 do
@addresses <<
end
end
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: rose.gates643@gmail.com
, 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 100
random emails for testing purposes.
Can you please point me out how I could do what I have intended to do with Ruby
?