@Kartoffel, yes you are right. It should be var execute=integer(random(3));

I changed my post above. It should work fine now.