10 lines
273 B
TypeScript
10 lines
273 B
TypeScript
// /**
|
|
// * @deprecated
|
|
// */
|
|
// export default function getRandomInt(min: number, max: number): number {
|
|
// min = Math.ceil(min);
|
|
// max = Math.floor(max);
|
|
// //不含最大值,含最小值
|
|
// return Math.floor(Math.random() * (max - min)) + min;
|
|
// }
|