feat: Add sample function to app
This commit is contained in:
parent
04072e7706
commit
5538a6ae0b
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue