Pauser, game modal launcher

This commit is contained in:
Martin
2022-11-25 12:00:09 +01:00
parent 43953f18a9
commit 4ca44647d6
18 changed files with 163 additions and 58 deletions

View File

@@ -0,0 +1,10 @@
export function shuffle<T>(array: T[]): T[] {
const shuffledArray: T[] = [...array];
for (let i = shuffledArray.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[shuffledArray[i], shuffledArray[j]] = [shuffledArray[j], shuffledArray[i]];
}
return shuffledArray;
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "4cd531d9-5419-440d-880c-36ce0fe32955",
"files": [],
"subMetas": {},
"userData": {}
}