title: Pick a random url from list and display as URL
body: <p>Im using Visual Studio 2012 and creating a web page using "ASP.NET Web Site (Razor v2)"
  Im using Java to generate a random link;</p>
  
  <pre><code>&lt;script&gt;
   var random = new Array();
   random[0] = "example1.com";
   random[1] = "pattern1.com";
   random[2] = "specimen1.com";
  &lt;/script&gt;
  
  &lt;script&gt;
      function randomlink() {
          window.location = random[Math.floor(Math.random() * random.length)];
      }
  &lt;/script&gt;
  
  &lt;a href="javascript:randomlink()" style="color: black;"&gt;A Random URL&lt;/a&gt;
  </code></pre>
  
  <p>When I click the A Random URL link it opens a random page from the list in the script above. I'ts all good, but because its a verry big list I need a way to do the same without having it in HTML because its slowing the loading of the page since its in the _SiteLayout.cshtml. Thanks.</p>