1. Before the page loads, prompt the user to enter their name and a number.
2. Welcome the user to the page by name.
3. Write the number that the user entered to the page.
4. Tell the user that you will generate a number between 0 and the number s/he entered.
5. Write the random number between zero and the number the user entered to the page.
6. Give the user the option to click a button to reload the page for a new number.
(HINT: check the location object methods in your book) .
REFERENCE: Math.random example:
var randValue = randInt(1,10); // call the randInt function and pass the values 1 and 10
function randInt(lower, size) {
return Math.floor(lower + size*Math.random() );
}