0
1
mmonizb
Gets a random variable from an Array with a random generated index value
0 Comments
const items = ["A", "B", "C","D"] const randomIndex = Math.floor(Math.random()*items.length) items[randomIndex]