3 lines
120 B
TypeScript
3 lines
120 B
TypeScript
|
export function random_int(from: number, to: number): number {
|
||
|
return Math.floor((Math.random() * to+1-from) + from);
|
||
|
}
|