A random Array

let arr = [1,2,3,4]

let rmd = arr[Math.floor(Math.random() * arr.length)]

console.log(rmd)

https://jsfiddle.net/xewcsop8/

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post