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

int randNumber;etc
Also missing pinMode

Please remember to use code tags when posting code