# Random code doesn't work in Firefox, but ok in IE?

**URL:** <https://forum.kirupa.com/t/random-code-doesnt-work-in-firefox-but-ok-in-ie/276439>\
**Category:** Uncategorized\
**Created:** [November 27, 2008, 12:00pm UTC](https://forum.kirupa.com/t/random-code-doesnt-work-in-firefox-but-ok-in-ie/276439 "2008-11-27T12:00:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![izzie](https://avatars.discourse-cdn.com/v4/letter/i/4491bb/32.png) [@izzie](https://forum.kirupa.com/u/izzie)\
**Post date:** [November 27, 2008, 12:00pm UTC](https://forum.kirupa.com/t/random-code-doesnt-work-in-firefox-but-ok-in-ie/276439/1 "2008-11-27T12:00:25Z")

</div>

I have this code so my file randomly starts at frame 2 or 3.  
In IE everthing’s fine, but in Firefox I just get a blank browser.  
Just the same in Netscape.

```auto
 
function randRange(min, max){   
var randomNum= Math.round(Math.random()*(max-min))+min;   
return randomNum; } 
{     
var say; say = randRange(2,3); gotoAndStop(say); 
}

```

Can somebody help and tell me what’s wrong?
