Calling a Random Value from a Database in JAVA

Hi,
I really need some Java Programmers to help me solve this problem. I have a database which has already data stored in it. I'm planning to get a random value in the database every time it calls it. My program is a guessing game like Hangaroo and random words from db should be get.
For example in my database I have 5 values in it and then when the program opens, it gets a random one from those 5 values. I only know how to get values from a db but not randomly.
What will I do to make my program get a random value?
