8 lines
187 B
TypeScript
Raw Permalink Normal View History

2021-06-27 21:00:24 +08:00
class NumberUtil {
static getRandom(min: number, max: number): number {
return Math.floor((Math.random() * (max - min + 1) + min));
}
}
2021-06-21 16:32:10 +08:00
export default NumberUtil;