MCPcopy Create free account
hub / github.com/GlobalTechInfo/MEGA-MD / pickRandom

Function pickRandom

plugins/animes.js:9–12  ·  view source on GitHub ↗
(arr, count = 1)

Source from the content-addressed store, hash-verified

7 'sasuke', 'sakura'
8];
9function pickRandom(arr, count = 1) {
10 const shuffled = arr.slice().sort(() => 0.5 - Math.random());
11 return shuffled.slice(0, count);
12}
13const animuMenu = '🎀 *Animes Menu* 🎀\n\n' +
14 '• *akira*\n' +
15 '• *akiyama*\n' +

Callers 1

handlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected