AI销管
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 jaren geleden
12345678910
  1. function random(min, max) {
  2. if (min >= 0 && max > 0 && max >= min) {
  3. let gab = max - min + 1;
  4. return Math.floor(Math.random() * gab + min);
  5. } else {
  6. return 0;
  7. }
  8. }
  9. export default random;