Generate random number and display on a 16x2 LCD screen

So I have a question that I don't have any idea on how to code it. It uses C language.

Basically, it needs to generate a random single digit number from ('0' to '9'), which will be displayed on the right end of a 16x2 LCD screen, which will then quickly move towards the left end within 2 seconds. When the number reaches the left end, it will display the word 'END'

What have you tried ?

Do you know how to print a single digit number to the LCD at a row and column of your choice ?
Do you know how to generate a random single digit number ?