Add scheduled events schema (#1679)

This commit is contained in:
Luke Vella 2025-04-22 14:28:15 +01:00 committed by GitHub
parent 22f32f9314
commit 56bd684c55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 1412 additions and 659 deletions

View file

@ -0,0 +1,9 @@
/**
* Generates a random integer between floor and max (inclusive).
* @param max The maximum value.
* @param floor The minimum value (default: 0).
* @returns A random integer.
*/
export const randInt = (max = 1, floor = 0): number => {
return Math.round(Math.random() * max) + floor;
};