Attempting to create a fortune-teller type machine; could use some help.

Hello! I go by Xandrox, and I am very new to programming and using Arduino. I have been attempting to create a fortune telling device using Arduino. The software tells me that it had an error compiling for Arduino/Genuino Mega or Mega 2560 (I use 2560) I was wondering if anyone could spot errors with the code, or tell me how to fix this error. Thanks!

#include <LiquidCrystal.h>
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
short randNumber;
void setup() {
lcd.begin(16, 2);
randNumber = random(1, 2);
if (randNumber = 1); {
if (randNumber = 2); {

    if (randNumber = 1); {oops

Look at the notes and warnings paragraph on this page.