I would code that like this...
while not keyhit(1) if keyhit(208) then time=millisecs()+10000 ;time = 10 seconds later than now if time>millisecs() then updatewheels() renderworld flip wend function UpdateWheels() wheel1=Rnd(0,9) wheel2=Rnd(0,9) wheel3=Rnd(0,9) wheel4=Rnd(0,9) RotateEntity mesh,pitch(wheel1),yaw(wheel1),roll(wheel1) RotateEntity mesh2,pitch(wheel2),yaw(wheel2),roll(wheel2) RotateEntity mesh3,pitch(wheel3),yaw(wheel3),roll(wheel3) RotateEntity mesh4,pitch(wheel4),yaw(wheel4),roll(wheel4) end function