Return to Snippet

Revision: 3235
at June 24, 2007 01:23 by t0d0r


Initial Code
  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

Initial URL

                                

Initial Description

                                

Initial Title
Generate random domain name

Initial Tags
textmate, rails

Initial Language
Rails