Please help! Random()

I’m getting in trouble with this random() function!\rI have a random() action on the first frame of a MC and on another I have a if statement that checks the random() action.\r\rFrame 1:\rsomething = random(5);\r\r\rFrame 10:\rif (something==2){\rdo action\r}\r\rThis isn’t working, what am I doing wrong???

Nevermind, it’s working…