# Random images! (Help)

**URL:** <https://forum.kirupa.com/t/random-images-help/86804>\
**Category:** Uncategorized\
**Created:** [April 15, 2005, 5:05pm UTC](https://forum.kirupa.com/t/random-images-help/86804 "2005-04-15T17:05:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sliker\_Hawk](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@Sliker\_Hawk](https://forum.kirupa.com/u/Sliker_Hawk)\
**Post date:** [April 15, 2005, 5:05pm UTC](https://forum.kirupa.com/t/random-images-help/86804/1 "2005-04-15T17:05:23Z")

</div>

So… I’ve changed the size of my site (most of you won’t know what it looked like anyway) and it fits perfectly with some (cropped) photos of mine.  
But that’s not really the point, I want the image to change every time you load the page up (visit or reload the page)… I’ve tried making something like

if (\_root.pic = 1) {  
this.stop  
}  
if (\_root.pic = 2) {  
this.gotoAndStop(2)  
}  
if (\_root.pic = 3) {  
this.gotoAndStop(3)  
}

'Cept I don’t know how to make numbers random either…

(but I did try  
\_root.pic = random(3);  
Which didn’t work.)

So, can anyone help?
