📅  最后修改于: 2022-03-11 15:02:08.861000             🧑  作者: Mango
var items = [12, 548 , 'farooq' , 2 , 5478 , 'dad' , 8852];
var randomIndex = Math.floor(Math.random() * items.length)
var randomItem = items[randomIndex];
console.log(randomItem)