Help with making a MC appear randomly in an area

[font=Comic Sans MS][font=Georgia][font=Verdana]hi,
i want to make it so my movie clip appears randomly in an area, i was using this code, but i dont want it to appear near the edges of the movie

xvaluevar = random(560);
_root.testtarget._x = xvaluevar;

any idea on how i can do it?
thanks[/font]
[/font][/font]