4609f6cac5
Fix formatting call duration Fix horizontal scrolling
6 lines
182 B
TypeScript
6 lines
182 B
TypeScript
export default function getUnsafeRandomInt(min: number, max: number) {
|
|
min = Math.ceil(min);
|
|
max = Math.floor(max);
|
|
return Math.floor(Math.random() * (max - min + 1)) + min;
|
|
}
|