mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-17 15:15:17 +00:00
Fix for Vocodes v1 removal
Mistakenly deleted files with function still in use
This commit is contained in:
1 parent
c8f70910b6
commit
b3f4477dd2
3 files changed
+19
-2
No files matched your search
@@ -0,0 +1,11 @@
|
||||
|
||||
/**
|
||||
* Generate a random integer in range.
|
||||
* @param min minimum inclusive
|
||||
* @param max maximum exclusive
|
||||
*/
|
||||
export function GetRandomInt(min: number, max: number) : number {
|
||||
min = Math.ceil(min);
|
||||
max = Math.floor(max);
|
||||
return Math.floor(Math.random() * (max - min)) + min;
|
||||
}
|
||||
Reference in new issue
Block a user