乱数を求めるには

onClipEvent (enterFrame) {
x = Math.floor(Math.random() * 320);
y = Math.floor(Math.random() * 240);
this._x = x;
this._y = y;
}
・サンプルを実行
・サンプルをダウンロード
Action Script逆引きクイックリファレンス 説明などは本書を参考にしてください。