Files
artcraft/vocodes/src/Utils.ts
T

9 lines
192 B
TypeScript

function getRandomInt(min: number, max: number) : number {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min)) + min;
}
export { getRandomInt }