fix公共方法 random
This commit is contained in:
parent
ee991be3b9
commit
07fa117614
@ -115,7 +115,7 @@ export class PublicShared {
|
||||
* 随机生成区间范围整数
|
||||
*/
|
||||
static randomNum(min: number, max: number) {
|
||||
return Math.floor(Math.random() * (max - min) + min);
|
||||
return Math.floor(Math.random() * (max - min + 1) + min);
|
||||
}
|
||||
/**获取道具配置 */
|
||||
static getAtnConf(atn: prizeType) {
|
||||
|
Loading…
Reference in New Issue
Block a user