pimath 0.0.21 → 0.0.22
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/dev/pi.js +18 -6
- package/dev/pi.js.map +1 -1
- package/dist/pi.js +1 -1
- package/dist/pi.js.map +1 -1
- package/esm/maths/geometry/line.d.ts +3 -2
- package/esm/maths/geometry/line.js +16 -4
- package/esm/maths/geometry/line.js.map +1 -1
- package/esm/maths/random/index.js +18 -6
- package/esm/maths/random/index.js.map +1 -1
- package/package.json +1 -1
- package/src/maths/geometry/line.ts +27 -6
- package/src/maths/random/index.ts +24 -6
package/dev/pi.js
CHANGED
|
@@ -4041,17 +4041,29 @@ var Random;
|
|
|
4041
4041
|
return (new rndFraction_1.rndFraction(config)).generate();
|
|
4042
4042
|
}
|
|
4043
4043
|
Random.fraction = fraction;
|
|
4044
|
-
function number(from, to) {
|
|
4044
|
+
function number(from, to) {
|
|
4045
|
+
return rndHelpers_1.rndHelpers.randomInt(from, to);
|
|
4046
|
+
}
|
|
4045
4047
|
Random.number = number;
|
|
4046
|
-
function numberSym(max, allowZero) {
|
|
4048
|
+
function numberSym(max, allowZero) {
|
|
4049
|
+
return rndHelpers_1.rndHelpers.randomIntSym(max, allowZero);
|
|
4050
|
+
}
|
|
4047
4051
|
Random.numberSym = numberSym;
|
|
4048
|
-
function bool(percent) {
|
|
4052
|
+
function bool(percent) {
|
|
4053
|
+
return rndHelpers_1.rndHelpers.randomBool(percent);
|
|
4054
|
+
}
|
|
4049
4055
|
Random.bool = bool;
|
|
4050
|
-
function array(arr, number) {
|
|
4056
|
+
function array(arr, number) {
|
|
4057
|
+
return rndHelpers_1.rndHelpers.randomArray(arr, number);
|
|
4058
|
+
}
|
|
4051
4059
|
Random.array = array;
|
|
4052
|
-
function item(arr) {
|
|
4060
|
+
function item(arr) {
|
|
4061
|
+
return rndHelpers_1.rndHelpers.randomItem(arr);
|
|
4062
|
+
}
|
|
4053
4063
|
Random.item = item;
|
|
4054
|
-
function shuffle(arr) {
|
|
4064
|
+
function shuffle(arr) {
|
|
4065
|
+
rndHelpers_1.rndHelpers.shuffleArray(arr);
|
|
4066
|
+
}
|
|
4055
4067
|
Random.shuffle = shuffle;
|
|
4056
4068
|
})(Random = exports.Random || (exports.Random = {}));
|
|
4057
4069
|
|