Add random utils
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
export function randomInt(fromInclusive: number, toExclusive: number): number {
|
||||||
|
return (
|
||||||
|
Math.floor(Math.random() * (toExclusive - fromInclusive)) + fromInclusive
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user