Obtenez une valeur aléatoire d'un tableau dans JS

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