This URL can show you how to access records, print them out, loop
through, and display an error if none exist.
I would just have an ID field that's auto-increment from 1-100 then
generate a randon number and print out the results from the field with
the ID corresponding to the randomly generated number.