<script type="text/javascript"> 
var a = new Array(
"Jane",
"Tom,", 
"Alan,",
"Mary");
</script>
<script type="text/javascript">
document.write(a[Math.floor(Math.random()*a.length)]);
</script>
ate an apple  
Is there away of reusing the answer to (a[Math.floor(Math.random()*a.length)]) later on in a script?   
So for example I could later use text along the lines of Harry asked "answer" if they had enjoyed the apple
 
     
     
    