@tktb-tess/util-fns 0.8.0 → 0.8.3
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/dist/bundle.js +5 -5
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -466,7 +466,7 @@ class B {
|
|
|
466
466
|
}
|
|
467
467
|
/**
|
|
468
468
|
* enqueue data
|
|
469
|
-
* @param data
|
|
469
|
+
* @param data
|
|
470
470
|
* @returns current queue length
|
|
471
471
|
*/
|
|
472
472
|
enqueue(...t) {
|
|
@@ -652,7 +652,7 @@ class N {
|
|
|
652
652
|
* // the following example is always initialized by the same seeds.
|
|
653
653
|
* // it's not recommended
|
|
654
654
|
* const weakRng = new PCGMinimal();
|
|
655
|
-
*
|
|
655
|
+
*
|
|
656
656
|
* // you should construct with random seeds generated by `PCGMinimal.getSeed()`.
|
|
657
657
|
* const betterRng = new PCGMinimal(PCGMinimal.getSeed());
|
|
658
658
|
*/
|
|
@@ -669,13 +669,13 @@ class N {
|
|
|
669
669
|
return L(r, e);
|
|
670
670
|
}
|
|
671
671
|
/**
|
|
672
|
-
*
|
|
672
|
+
*
|
|
673
673
|
* @returns a random 32-bit unsigned integer
|
|
674
674
|
*/
|
|
675
675
|
getU32Rand() {
|
|
676
676
|
return this.#n(), this.#e;
|
|
677
677
|
}
|
|
678
|
-
/**
|
|
678
|
+
/**
|
|
679
679
|
* @returns a random 32-bit unsigned integer less than `bound`
|
|
680
680
|
*/
|
|
681
681
|
getBoundedU32Rand(t) {
|
|
@@ -687,7 +687,7 @@ class N {
|
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
689
|
/**
|
|
690
|
-
*
|
|
690
|
+
*
|
|
691
691
|
* @param step the number of needed random integers
|
|
692
692
|
* @param bound upper limit
|
|
693
693
|
* @returns
|