// Math.random() returns a decimal number between

// 0 and 1. You multiple the result by the range

// of numbers you want.

// This will generate 0-10.

var rannum = 0

while(rannum == 0) {

rannum = Math.random()*10;

}

// This would generate 145-200

// rannum = Math.random()*55 + 145;

// rannum is now a decimal value, to turn it into

// an integer use Math.round to round it to the nearest

// integer. Math.floor(rannum) to always round down and

// Math.ceil(rannum) to round up.

rannum = Math.round(rannum);

location.href = "http://context3.kanoodle.

location.href will redirect you to the url specified

Hope this helps