/ Published in: Rails
![](/img/icon_sav.png?v3)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
def domain_name [ "www", ("a".."z").to_a.sort_by{rand}.join.slice(0..rand(15)), %w{com net org}[rand(3)] ].join('.').downcase end
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)
def domain_name [ "www", ("a".."z").to_a.sort_by{rand}.join.slice(0..rand(15)), %w{com net org}[rand(3)] ].join('.').downcase end