Passing calculated number to pause()
The following code throws Error JavaException: java.lang.Exception: Invalid Pause Value : For input string: "2267.0"
var delay = 0;
delay = parseInt(Math.round(1000 * ((maxDelay - minDelay) * Math.random() + minDelay)));
pause(delay);
No matter what I try - parseInt, Number - I can't convert the delay into an argument that the pause function will accept.
On the other hand, pause(2267) works just fine where 2267 is hard coded.
How can I request a programmatically-generated delay?

