Ad
Code
Diff
  • randomAB = (a, b) => {
      // So the user can enter the nums in any order
      if (a > b) [a, b] = [b, a];
      return Math.round(Math.random() * (b - a) + a);
    }
    • randomAB=(a,b)=>{
    • return Math.round(Math.random()*(b - a) + a)
    • randomAB = (a, b) => {
    • // So the user can enter the nums in any order
    • if (a > b) [a, b] = [b, a];
    • return Math.round(Math.random() * (b - a) + a);
    • }