Migration to Nuxt3

This commit is contained in:
2023-04-30 18:36:39 +02:00
parent ed2e1824c5
commit 0480b99865
170 changed files with 13890 additions and 3699 deletions

11
utils/random.ts Normal file
View File

@ -0,0 +1,11 @@
export function randomOfArray<T>(array:T[]):T {
return array[Math.floor(Math.random() * array.length)];
}
export function random(min:number, max:number):number {
return Math.random() * (max - min) + min;
}
export function randomInt(min:number, max:number):number {
return Math.floor(random(min, max));
}