Look at this FAQ topic on random numbers. Post 4 in that FAQ will interest you.