This commit is contained in:
TheNetsky
2023-09-30 20:29:42 +02:00
parent 01bbf0b270
commit ffe00ff3b8
6 changed files with 71 additions and 23 deletions

View File

@@ -20,4 +20,8 @@ export function shuffleArray(array: any[]): any[] {
shuffledArray.sort(() => Math.random() - 0.5)
return shuffledArray
}
export function randomNumber(min: number, max: number) {
return Math.floor(Math.random() * (max - min + 1)) + min
}