/ Published in: Rails
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