Random Number Function
This is just a simple Javascript random number function. It utilises the built in functions Math.random() and Math.floor()
The parameters "min" and "max" are the inclusive range to return.
function randNum(min, max) {
return Math.floor((Math.random() * (max - min + 1)) + min);
}