From Random between two numbers in Javascript
If you wanted to get between 1 and 6:
Math.floor(Math.random() * 6) + 1