array = [1,2,3] console.log array[Math.floor(Math.random() * array.length)]