title: Math.round() cannot get integer with karate
body: <p>Below is my code, I want to get random number between 1 and 10, but it returns like 2.0 not 2</p>
  
  <pre><code>    Scenario: POST /api/coupon/status/change__Activate
       Given path '/api/coupon/be/save'
       And headers allHeaders.HeadersToken
       * def GetNum = function(){num=Math.round(Math.random() * 9) + 1); return num;}
       * def BrandCode = GetNum()
       * print BrandCode
  And I try to convert result, it failed. 
      * def GetNum = function(){int num=(int)(Math.round(Math.random() * 9) + 1)); return num;}
  </code></pre>