shawenguan 1 년 전
부모
커밋
ca94f24222
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      Scripts/hbcpre/hbcpreComposite.js

+ 5 - 0
Scripts/hbcpre/hbcpreComposite.js

@@ -146,6 +146,11 @@ function readMySeriesOwnCntFakeData() {
     return gItemCntRwDict;
 }
 
+function getNRandomDigits(n) {
+    const min = Math.pow(10, n-1);
+    const max = Math.pow(10, n) - 1;
+    return Math.floor(Math.random() * (max - min + 1)) + min;
+}
 
 function getRandomInt(min, max) {
     return Math.floor(Math.random() * (max - min + 1) + min);