ivorymagus
New Member
I need something very simple that I can understand. I'm trying to make a random picker, that randomly picker like, 1 of 8 things. And not just images, just a little section of html coding.
<script type="text/javascript">
<!--
function RandomWand(){
var wands = new Array(8);
wands[0] = "wand1";
wands[1] = "wand2";
wands[2] = "wand3";
wands[3] = "wand4";
wands[4] = "wand5";
wands[5] = "wand6";
wands[6] = "wand7";
wands[7] = "wand8";
num = Math.round(Math.random()*7);
document.write( wands[num] );
}
-->
</script>
<script>
RandomWand()
</script>