Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 11-27-2003, 05:41 AM   #1 (permalink)
 
Newb Techie

Join Date: Nov 2003

Posts: 4

Draven_lacleon

Unhappy Html-Numbers

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????
Draven_lacleon is offline  
Old 11-27-2003, 06:03 AM   #2 (permalink)
 
Newb Techie

Join Date: Nov 2003

Posts: 4

Draven_lacleon

Talking

thanx that was really helpful
Draven_lacleon is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On