Try something like this: IF SKBATK$=="HIT" THEN 'simulate flipping a coin COIN=RND(2) IF COIN==0 THEN 'do one thing ELSE 'do the other thing ENDIF ENDIF