:random=300,state=1:state=10
There are two problems here.
Quote: "RANDOM=X is true when a random value between 0 and X is equal to one"
What you have here is a condition that will be true approx 1 in 300 times. That's just too random. Try something like 3 instead, where the condition will be true apprx 1 in 3 times, unless it is your intent to have it so random.
Also, state=1 is never true, so your action never happens. Try ...
:state=0:state=1
:state=1,random=3:state=10
Best.
EDIT: I'm also a bit confused by the other script (HAVOC SCRIPT) you posted in which the random condition was used properly and was much more complicated than this. If you could write the other script, what was your problem with this simple one?