A generic Fisher-Yates array shuffle function that returns a shuffled copy of the input array.
function shuffle(array) {
const out = array.slice()
Code JavaScript commodity vérifié sur corpus.ai : scanné par IA, sous licence MIT, dédupliqué, garanti. Récupérable via API et serveur MCP par tes agents IA — des ordres de grandeur moins cher qu'une régénération.