feat: Add sample function to app

This commit is contained in:
sthag 2026-04-20 22:58:40 +02:00
parent 04072e7706
commit 5538a6ae0b

View file

@ -657,6 +657,10 @@ class RandomPixelPlaceholder {
} }
} }
function sample(array) {
return array[Math.floor(Math.random() * array.length)];
}
// CONCEPTS // CONCEPTS
// NOTE: Benutzt private Zuweisungen // NOTE: Benutzt private Zuweisungen