10 lines
190 B
TypeScript
10 lines
190 B
TypeScript
/**
|
|
*
|
|
* @param min inclusive
|
|
* @param max exclusive
|
|
* @returns
|
|
*/
|
|
export function randRange(min: number, max: number): number {
|
|
return Math.floor(Math.random() * (max - min) + min)
|
|
}
|