amos-tool 1.6.9 → 1.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/Logger.html +1 -1
- package/docs/global.html +1 -1
- package/docs/index.html +1 -1
- package/lib/random.js +20 -7
- package/package.json +1 -1
package/docs/Logger.html
CHANGED
|
@@ -490,7 +490,7 @@ isDebug: true
|
|
|
490
490
|
<br class="clear">
|
|
491
491
|
|
|
492
492
|
<footer>
|
|
493
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on
|
|
493
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Wed May 15 2024 18:53:54 GMT+0800 (GMT+08:00) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
494
494
|
</footer>
|
|
495
495
|
|
|
496
496
|
<script>prettyPrint();</script>
|
package/docs/global.html
CHANGED
|
@@ -16866,7 +16866,7 @@ schedule <code>callback</code> to execute after <code>delay</code> ms.</p></td>
|
|
|
16866
16866
|
<br class="clear">
|
|
16867
16867
|
|
|
16868
16868
|
<footer>
|
|
16869
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on
|
|
16869
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Wed May 15 2024 18:53:54 GMT+0800 (GMT+08:00) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
16870
16870
|
</footer>
|
|
16871
16871
|
|
|
16872
16872
|
<script>prettyPrint();</script>
|
package/docs/index.html
CHANGED
|
@@ -793,7 +793,7 @@ convert2BMP(canvas, width, height)</p>
|
|
|
793
793
|
<br class="clear">
|
|
794
794
|
|
|
795
795
|
<footer>
|
|
796
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on
|
|
796
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Wed May 15 2024 18:53:54 GMT+0800 (GMT+08:00) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
797
797
|
</footer>
|
|
798
798
|
|
|
799
799
|
<script>prettyPrint();</script>
|
package/lib/random.js
CHANGED
|
@@ -1,16 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function randomInt(
|
|
4
|
-
return null ==
|
|
3
|
+
function randomInt(r, n) {
|
|
4
|
+
return null == n && (n = r, r = 0), r + Math.floor(Math.random() * (n - r + 1));
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
function random(
|
|
8
|
-
|
|
9
|
-
for (var
|
|
10
|
-
return
|
|
7
|
+
function random(r) {
|
|
8
|
+
r || (r = 6);
|
|
9
|
+
for (var n = "", o = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz", t = o.length, a = 0; a < r; a++) n += o.charAt(randomInt(0, t - 1));
|
|
10
|
+
return n;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function randomOrderNumber(r, n) {
|
|
14
|
+
if (!Array.from) {
|
|
15
|
+
for (var o = [], t = r; t < n + 1; t++) o.push(t);
|
|
16
|
+
return o;
|
|
17
|
+
}
|
|
18
|
+
return Array.from({
|
|
19
|
+
length: n - r + 1
|
|
20
|
+
}, (function(n, o) {
|
|
21
|
+
return r + o;
|
|
22
|
+
}));
|
|
11
23
|
}
|
|
12
24
|
|
|
13
25
|
module.exports = {
|
|
14
26
|
random: random,
|
|
15
|
-
randomInt: randomInt
|
|
27
|
+
randomInt: randomInt,
|
|
28
|
+
randomOrderNumber: randomOrderNumber
|
|
16
29
|
};
|