while(true){ //キャラ出現率10% if (rnd(100)<10) { new Chara2{ ox:rnd(500)-250,oy:rnd(500)-250,z:1000 ,p:0,zOrder:0}; } update(); }