You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
puhui-go-web/src/app/utils/mathUtils.service.ts

13 lines
266 B

export class MathUtils{
/**
* @Author Sum1Dream
* @Name
* @Description // 获取1-100随机数
* @Date 11:13 2024/4/9
* @Param number
*/
static generateRandomNumber(number: number): number {
return Math.floor(Math.random() * number) + 1;
}
}