<?xml version="1.0" encoding="ISO-8859-1" ?>
  <resource>
  <id>8129</id>
  <path>/www/nrich/html/content/id/8129/</path>
  <resourceTypeID>1</resourceTypeID>
  <last_published>0000-00-00T00:00:00</last_published>
  <indexXML>&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;div id=&quot;randoms&quot; style=&quot;display:none;&quot;&gt;1,2,3,4,5,6,7&lt;/div&gt;
&lt;div class=&quot;output&quot; id=&quot;output&quot;&gt; &lt;/div&gt;
&lt;div class=&quot;output&quot; id=&quot;secondary&quot;&gt; &lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
//
//
//

function show(val,source){
document.getElementById(source).innerHTML = val;
}

function makerandom(src,target){
var spl = document.getElementById(src).innerHTML.split(&amp;#39;,&amp;#39;);
var val = Math.floor(Math.random()*spl.length);

show(spl[val],target);
}

makerandom(&amp;quot;randoms&amp;quot;,&amp;quot;output&amp;quot;);

/* To get the value for reuse use var me = document.getElementById(output).innerHTML
EG.
*/
var me = document.getElementById(&amp;quot;output&amp;quot;).innerHTML *2;
show(me,&amp;quot;secondary&amp;quot;);

//
//
//
&lt;/script&gt;&lt;/mdoxml&gt;</indexXML>
  <solutionXML/>
  <noteXML/>
  <clueXML/>
  <canonXML/>
  <end_user_role>2</end_user_role>
  <difficulty>3</difficulty>
  <keystage1>0</keystage1>
  <keystage2>0</keystage2>
  <keystage3>0</keystage3>
  <keystage4>0</keystage4>
  <keystage4plus>0</keystage4plus>
  <title>Random Test</title>
  <description></description>
</resource>