diff --git a/packages/math/src/range.js b/packages/math/src/range.js index acf6117..861ad53 100644 --- a/packages/math/src/range.js +++ b/packages/math/src/range.js @@ -12,12 +12,10 @@ export default class Range { } } - static value(rangeOrOther) { - return rangeOrOther instanceof Range ? rangeOrOther.value() : rangeOrOther; - } - value() { - return 'undefined' === typeof this.max ? this.min : randomNumber(this.min, this.max, false); + return 'undefined' === typeof this.max + ? this.min + : randomNumber(this.min, this.max, false); } }