Microsoft Product Name Generator

Lance and I were musing over some of the recent product renamings and it gave me the idea to throw together a product name generator. Here's my first stab at it:


Get Product Name:

Feel free to customize your own. Here's the srcipt source:

   1:  <script>
   2:  var pfx = new Array("", "Visual ", "Compact ", "Embedded ", "Expression ");
   3:  var prd = new Array("", "Windows ", "Office ", "SQL ", "FoxPro ", "BizTalk ");
   4:  var trm = new Array("Web ", "Robotics ", "Network ", "Testing ", "Project ", "Small Business ", "Team ", "Management ", "Graphic ", "Presentation ", "Communication ", "Workflow ", "Ajax ", "XML ", "Content ", "Source Control ");
   5:  var typ = new Array("", "Client ", "Workstation ", "Server ", "System ", "Console ", "Shell ", "Designer ");
   6:  var sfx = new Array("", "Express ", "Standard ", "Professional ", "Enterprise ", "Ultimate ", "Foundation ", ".NET ", "Framework ");
   7:   
   8:  function pick(ar) { return ar[Math.round((ar.length-1)*Math.random())]; }
   9:  function getProductName()
  10:  {
  11:      var name = "";
  12:   
  13:      name += pick(pfx);
  14:      name += pick(prd);
  15:      name += pick(trm);
  16:      name += pick(typ);
  17:      name += pick(sfx);
  18:   
  19:      var p = document.getElementById("p");
  20:      p.innerHTML = name;
  21:  }
  22:  </script>
  23:  <A href="#" onclick="getProductName()">Get Product Name</a>: <b><span id="p"></span></b>

3 Comments

Comments have been disabled for this content.