Uzyskaj losową wartość z tablicy w JS

const randomElement = array[Math.floor(Math.random() * array.length)];
Gifted Gorilla