6 lines
176 B
TypeScript
6 lines
176 B
TypeScript
export function randomInt(fromInclusive: number, toExclusive: number): number {
|
|
return (
|
|
Math.floor(Math.random() * (toExclusive - fromInclusive)) + fromInclusive
|
|
);
|
|
}
|