amount of stuff, set a boundary so it doesn't do out of a certain range then put until loops to keep it from doing another action while the current is in action. once its complete don't forget to reset the first rnd variable by putting a=rnd(4) at the end