Examples for using the Random function These could be placed in buttons or other script locations You can copy these scripts and paste them into the Director script window on mouseUp -- pick a random number and rotate to that degree rr=random(3) r = random(360) -- rotation sprite(1).rotation = r --set up a list of words, pick a random number, pick that item of the list --and put it into a text field in="spider,ants,pincherbug,scorpion,cicada" r2 =random(5) -- insect wo = item r2 of in put wo into field "insects" --- set up a list of font names, pick a random number, pick that font name -- change the font of a member called insects to be that font fo="geneva,chicago,new york,monaco,helvetica" r3 = random(5) -- fonts f= item r3 of fo member("insects").font =f --create several members with various names, put those names in a list -- pick a random number, take than member name -- change a particular sprite to show that member na="circle,square,christmas" r6= random(3) --members m = item r6 of na sprite(1).member=m -- import several sounds, create a list of those sound names -- pick a random number -- play that item in the list soundlist = "bark, purr,hiss" r5 = random(3) sound(1).play(member r5) updatestage end