Add random utils

This commit is contained in:
2024-12-01 16:25:57 +01:00
parent c67754c6c8
commit ef0d1275c9
+5
View File
@@ -0,0 +1,5 @@
export function randomInt(fromInclusive: number, toExclusive: number): number {
return (
Math.floor(Math.random() * (toExclusive - fromInclusive)) + fromInclusive
);
}