debugging - Dynamic Random number glitch -


for project, http://www.swfcabin.com/swf-files/1302575829.swf, number doesn't appear when "scratch" top part off. code being used (yes it's little nooby, i'm new @ this)

{      zoom = random (20) +1;      gotoandplay(2); } 

how can make number appears every time? thanks! -zach

ps: actionscript2

use floor method , multiplication:

math.floor(math.random() * 20) + 1; 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -