Math.floor(Math.random() * 10) // Will return a integer between 0 and 9 Math.floor(Math.random() * 11) // Will return a integer between 0 and 10