Home > Selenium > Generate random email id in Ruby

Generate random email id in Ruby


We can return random email using following method

def email
      emailid = (0..8).map{(‘a’..’z’).to_a[rand(26)]}.join+”@yopmail.com”
      return emailid
while need random email id, just call the method “email()”.
Categories: Selenium Tags:
  1. December 10, 2014 at 9:38 pm

    What you published was actually very reasonable. However, what about this?
    suppose you added a little information? I mean, I don’t want to tell you how to run your blog,
    but what if you added something that grabbed people’s attention? I mean Generate random email id
    in Ruby | Thiyagarajan Veluchamy’s Blog is kinda vanilla. You should peek at Yahoo’s front page and see how
    they write article headlines to grab viewers to click.
    You might try adding a video or a picture or two to grab readers excited about everything’ve got to say.
    Just my opinion, it could make your website a little bit more interesting.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: