2 lines
76 B
CoffeeScript
2 lines
76 B
CoffeeScript
array = [1,2,3]
|
|
console.log array[Math.floor(Math.random() * array.length)]
|