Obtenga un valor aleatorio de una matriz en JS

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