View Full Version : I just don't get Javascript

12-07-2006, 07:53 PM
First, I want to say that my textbook doesn't explain jack ****.
I have an assignment in my HTML class that requires me to use javascript. One line says:
"declare a variable named 'rNum' which is equal to a random integer between 1 and the value of the size variable"

I have no idea what I'm supposed to do in order to achieve this.:confused: I am completely lost and starting to hate the person who wrote my textbook. Can anyone help?

12-07-2006, 08:16 PM
It's tricky to help without telling the answer so I'll just point to some webpages that should help.

To declare a variable:


To get a random integer:


Hopefully those are better than your book