Noob help with a random tweet quote generator

I’ve been chipping away at this Frank Zappa Ethernet twitter quote generator that updates every hour. But I have no clue if I’ve formatted it right. It would be appreciated if someone would help me. I actually don’t have an Arduino yet, just programming in anticipation for it. :slight_smile:

#include <SPI.h>
#include <Ethernet.h>
#include <UDP.h>
#include <EthernetDNS.h>
#include <Twitter.h>

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 10, 0, 0, 177 };
Twitter twitter("<<< your token here >>>");
void setup()
{
  delay(1000);
  Ethernet.begin(mac, ip);
  Serial.begin(9600);
  Serial.println("connecting ...");
   
}

void loop() {
int randNumber;
randNumber = random(10); 
    
     if (randNumber = 1);
     {
       twitter.post("The Muffin Man is located in the Utility Muffin Research Kitchen... #zappa");      
}
     if (randNumber = 2);
     {
       twitter.post("YOU'RE PHONY ON TOP, YOU'RE PHONY UNDERNEATH! #zappa");
     }
{
     if (randNumber = 3);
       twitter.post("Help, I'm a rock! #zappa");
}
    if (randNumber = 4);
    {
      twitter.post("The White Zone is for loading and unloading #zappa");
}
    if (randNumber = 5);
    {
      twitter.post("This is the Central Scruitinizer... #zappa");
    }
  if (randNumber = 6);
  {
  twitter.post("And Joe was wisked away by an evil barbarian with a wrench in his pocket #zappa");
}
  if (randNumber = 7);
  {
  twitter.post("And the dust blows forward and the dust blows back... #beefheart")
  }
  if (randNumber = 8);
  {
  twitter.post("In plain view, it's Captain Beefheart! #beefheart")
  }
{
  if randNumber = 9);
  twitter.post("We're Only In It For the Money #zappa")
}
{
  if (randNumber = 10);
    twitter.post("TV dinner by the pool, I'm so glad I finished school #zappa");
} 
    delay(3600000);
}
      else {
    Serial.println("connection failed.");
  }
}

thanks,
OfAnAwesome

     if (randNumber [glow]=[/glow]= 1);
     {

Thanks! But I'm still getting the following errors

TwitterWIP.cpp: In function 'void loop()':
TwitterWIP:52: error: expected `;' before '}' token
TwitterWIP:56: error: expected `;' before '}' token
TwitterWIP:58: error: expected `(' before 'randNumber'
TwitterWIP:61: error: expected `;' before '{' token
if (randNumber = 1)[glow];[/glow]

Nope.

blows back... #beefheart")[glow]  [/glow]

There's a big clue in the error message.

Consistent indentation helps spot mismatched braces.

You may want to read about the switch/case construct too.

BTW sp. "whisked" ;)