JavaScript Math
Math.floor(Math.random() * 100) + 1) returns a random integer between 1 and 100 (both included):