@tstdl/base 0.83.18 → 0.83.19

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/random/series.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tstdl/base",
3
- "version": "0.83.18",
3
+ "version": "0.83.19",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/random/series.js CHANGED
@@ -25,7 +25,7 @@ var import_math = require("../utils/math.js");
25
25
  var import_type_guards = require("../utils/type-guards.js");
26
26
  var import_random_number_generator_function = require("./number-generator/random-number-generator-function.js");
27
27
  function* randomSeries({ bounds, initial = bounds ?? 1, volatility = 0.025, relativeTo = "initial", generator = import_random_number_generator_function.defaultRandomNumberGeneratorFn, regressionExponent = 10 } = {}) {
28
- const initialValue = (0, import_type_guards.isNumber)(initial) ? initial : (0, import_math.randomInt)(initial[0], initial[1]);
28
+ const initialValue = (0, import_type_guards.isNumber)(initial) ? initial : (0, import_math.randomFloat)(initial[0], initial[1]);
29
29
  const isRelativeToCurrent = relativeTo == "current";
30
30
  const hasBounds = (0, import_type_guards.isDefined)(bounds);
31
31
  const min = hasBounds ? bounds[0] : void 0;