Edit & Run
Math.floor(Math.random() * 10) + 1) returns a random integer between 1 and 10 (both included).