Another example using the LCD 4484s shield, this time I wanted a character on the display in a random location. This example allows us to look at generating random numbers. The first part in the stup() is important as this explains setting a random seed, in the example below we simply display a character at a random location on the display.
//initialise and clear
// if analog input pin 0 is unconnected, random analog
// noise will cause the call to randomSeed() to generate
// different seed numbers each time the sketch runs.
// randomSeed() will then shuffle the random function.
long randomX, randomY;
//random number between 0 and 84
randomX = random(0,84);
//random number between 0 and 4
randomY = random(0,4);
//clear the LCD
//pause for 1 second
//move to LCD position
//write a character to LCD
//1 second delay