Random rating display.

Hi, GS dudes.
Today's problem is how to display rating screen randomly. What I am trying is to display it when player touch the start button (1/5 chance).
Today's problem is how to display rating screen randomly. What I am trying is to display it when player touch the start button (1/5 chance).
Comments
but i think this will generally work :
when player touch the start button:
Change "Game.chance odd" TO random(1,5)
Now a new rule :
When "Game.chance odd" IS 1
Do this 1
When "Game.chance odd" IS 2
Do this 2
When "Game.chance odd" IS 3
Do this 3
Etc etc ..
GLOBAL Attributes:
* randomNumber (Integer)
RULE 1 - In Start Button Actor
When ActorRecievesEvent 'touch' IS 'pressed'
Change Attribute 'randomNumber' to random(0,4) (NOTE: Or change to 1,5, which ever you feel comfortable with)
RULE 2 - In Start Button Actor (after above actor)
When Attribute 'randomNumber' <= 3 (NOTE: or 4 if you did 1-5)
do normal start button behaviour
OTHERWISE
show rating screen
Change attribute color.alpha to random (1,5)-4