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