Added pick random function

This commit is contained in:
2026-02-07 20:10:20 +00:00
parent 683c931e9c
commit 3047d577c2

View File

@ -1,2 +1,8 @@
const Maths = Math; // Yes, I'm that patriotic.
function pickRandom(array) {
return array[Maths.floor(Maths.random() * array.length)];
}
window.addEventListener('load', (e) => { window.addEventListener('load', (e) => {
}); });