diff options
Diffstat (limited to 'shared/core-utils/miscs/miscs.ts')
-rw-r--r-- | shared/core-utils/miscs/miscs.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shared/core-utils/miscs/miscs.ts b/shared/core-utils/miscs/miscs.ts new file mode 100644 index 000000000..c668e44c1 --- /dev/null +++ b/shared/core-utils/miscs/miscs.ts | |||
@@ -0,0 +1,7 @@ | |||
1 | function randomInt (low: number, high: number) { | ||
2 | return Math.floor(Math.random() * (high - low) + low) | ||
3 | } | ||
4 | |||
5 | export { | ||
6 | randomInt | ||
7 | } | ||