How to print random text

I was wondering if anyone can help me with a code to print random text. Heres the pseudo code.

RandomName = John or Fred or Peter or Jim; Serial.print("Hello "(RandomName));

This will basically say Hello to one of of the names listed picked randomly.

Something like this:

const byte NUMBER_OF_NAMES = 4; char* names[NUMBER_OF_NAMES] = { "John", "Fred", "Peter", "Jim" };

void setup(){ Serial.begin(9600); randomSeed(analogRead(0)); Serial.print("Hello "); Serial.println(names[random(0,NUMBER_OF_NAMES)]); }

void loop(){ }


tx :)