code: public static int randbetween(EvaluationContext ctx, Object bottom, Object top) {
          int _bottom = Conversions.toInteger(bottom, ctx);
          int _top = Conversions.toInteger(top, ctx);
  
          return (int)(Math.random() * (_top + 1 - _bottom)) + _bottom;
      }
docs: Returns a random integer number between the numbers you specify