getValue()

in frontend/mx/src/mock/events.js [16:21]


  getValue() {
    const range = this.isFloat ? Math.abs(this.max - this.min) : Math.abs(this.max - this.min) + 1;
    let value = Math.random() * range;
    value = this.isFloat ? value : Math.floor(value);
    return value + this.min;
  }