Hi,
Cool.
one important advice as a general way of scripting. Avoid duplicating code. Instead, create a new method ( ie "ComputeRandom()") where you will have your code, and call that method form the onEnter and OnUpdate methods. This way you only have one set of commands for your feature. In more complex programming this is essential to not fall into bad bugs and totally painful refactoring. In our case, it's minor, but still, if you need to edit this featurem you will have to do it twice, and you may forget or make a small typo and then it will work differently is eveyframe is checked than if not...
Bye,
Jean