Get a random item from a JavaScript array [duplicate] August 29, 2022 by Tarik var item = items[Math.floor(Math.random()*items.length)];