title: Randomly choose a node in XSLT
body: <p>I have a question about some sort af random function in XSLT.</p>
  
  <p>I have an XML-file that very simplified look similar to this:</p>
  
  <pre><code>&lt;node id="1198"&gt;
    &lt;node id="1201"&gt;
      &lt;data alias="name"&gt;Flemming&lt;/data&gt;
      &lt;data alias="picture"&gt;1200&lt;/data&gt;
    &lt;/node&gt;
    &lt;node id="1207"&gt;
      &lt;data alias="name"&gt;John&lt;/data&gt;
      &lt;data alias="picture"&gt;1205&lt;/data&gt;
    &lt;/node&gt;
    &lt;node id="1208"&gt;
      &lt;data alias="name"&gt;Michael&lt;/data&gt;
      &lt;data alias="picture"&gt;1206&lt;/data&gt;
    &lt;/node&gt;
  &lt;/node&gt;
  </code></pre>
  
  <p>I would like to have some XSLT, that ramdomly took one of the nodes id's and put it into a variable called "choosenNode".
  Like this, if the node with the ID of 1207 was the selected one:</p>
  
  <pre><code>&lt;xsl:variable name="choosenNode" value="1207" /&gt;
  </code></pre>
  
  <p>How can i do this? Is there a random-function in XSLT?
  By the way, I would like the variable to be refreshed on every page where the XSLT is included.</p>
  
  <p>And I work in Umbraco CMS, if that helps you guys.</p>
  
  <p>Thanks, 
  -Kim</p>