Obtenha um valor aleatório de uma matriz em JS

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