random number from 1 to 50 javascript code example Example: js random int let int = Math.floor(Math.random() * 10);