github.com/MontFerret/ferret@v0.18.0/e2e/pages/dynamic/utils/random.js (about)

     1  export default function random(min = 1000, max = 4000) {
     2      const val = Math.random() * 1000 * 10;
     3  
     4      if (val < min) {
     5          return min;
     6      }
     7  
     8      if (val > max) {
     9          return max;
    10      }
    11  
    12      return val;
    13  }