Hi, yes yes it should be more like: Math.random()*range+min
> Wouldn't that be: > Math.random()*(max-min)+min > > Ray Chuan wrote: > > Hi, > > do something like this: > > > > Math.random()*max+min > > > >> cool thanks.. it is working fine. i was just stopping at the wrong break > >> point. > >> > >> does anyone have a method for getting a random range? say between like 0 > >> - 9 ? i see that the Math.random() returns a random decimal. I can't > >> remember how to get a random range from it. > >> > >> thanks in advance! > >> > >> smith > > > > _______________________________________________ > > osflash mailing list > > osflash at osflash.org > > http://osflash.org/mailman/listinfo/osflash_osflash.org > > -- Ray Chuan _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
