I am venturing into my second web building project and have found my selve up a certain creek with out a paddle.
i am trying to find out a way to make a random number generator work using html, i have been sent a java applet by a friend and much to my dismay it's not working. i have also e-mailed a certain raven black(who i hold in high esteem) but much to my added dismay his suggestions are not working either. Mr Black told me that:
MATH.RAND()
would answer my questions about getting random numbers, and i have also been given:
<script language="JavaScript" type="text/javascript">
<!--
var min_num = 1;
var max_num = 8;
var diff = max_num-min_num+1 ;
var rnd_number=Math.floor(Math.random()*diff + min_num);
// -->
</script>
but neither of these are working, what am i doin wrong????