合成藏宝图,消耗品单独开表

This commit is contained in:
luying
2020-11-25 20:31:42 +08:00
parent 3f3c716dc6
commit 169ba8cea7
17 changed files with 282 additions and 215 deletions
+2 -1
View File
@@ -169,7 +169,8 @@ export function decodeIdCntArrayStr(str: string, multi: number) {
return ce;
}
export function getRandomByLen(arr: Array<any>) {
export function getRandomByLen(arr: Array<number>):number
export function getRandomByLen(arr: Array<any>): any {
let len = arr.length;
return arr[Math.floor(Math.random() * len)]
}