Error with Random generator!


I'm trying to put a random generator together. I have three LED's that should light up randomly but I'm stuck in the programing.

At my first "If (random = 1)" it brings up the ERROR exspected unqualified-id before 'if'

What is the problem here??

Please help me! :-/

I just answered this:

Please, do not crosspost :)

It is a lot easier for both you and us if you keep all information related to a specific topic/problem located in a single thread.