fix公共方法 random

This commit is contained in:
dy 2023-12-28 13:39:28 +08:00
parent ee991be3b9
commit 07fa117614

View File

@ -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) {