[Error] expected primary-expression before '=' token

Hello, community,

Today I came across a problem that I am unable to solve my self.

I have received the:

"exit status 1
expected primary-expression before '=' token" Error.

This occurs in two places in the script, see bellow.

The script:

void setup() {
// put your setup code here, to run once:
#define A 13
#define B 10
#define C 11
#define D 12
#define randNumber
#define JuisteKode

Serial.begin(9600);

randomSeed(analogRead(0));

}

void loop() {
randNumber = random(1, 2); //expected primary-expression before '=' token

if (randNumber == 1) { //expected primary-expression before '=' token
delay (15);

digitalWrite(A, HIGH); //1
digitalWrite(B, LOW);
digitalWrite(C, LOW);
digitalWrite(D, LOW);

delay (200);

digitalWrite(A, LOW); //0
digitalWrite(B, LOW);
digitalWrite(C, LOW);
digitalWrite(D, LOW);

}

else {
delay (15);

digitalWrite(A, LOW); //2
digitalWrite(B, HIGH);
digitalWrite(C, LOW);
digitalWrite(D, LOW);

delay (200);

digitalWrite(A, LOW); //0
digitalWrite(B, LOW);
digitalWrite(C, LOW);
digitalWrite(D, LOW);
}

}

Silently awaiting for a solution,

xXxMeMe_sLaYEr_2006xXx

randomaf.ino (793 Bytes)

int randNumber;etc
Also missing pinMode

Please remember to use code tags when posting code

Your code in the body of the post does not match the code in your attachment, WTF!

You do not do #define inside a function. You have to follow #define something with what it defines
like this

#define JuisteKode noobee

so when ever the pre compiler sees the word JuisteKode it replaces it with noobee before it sends it to the compiler.