Funny you should ask!
Science News has a piece on that very topic.
The method of generating (pseudo-)random numbers that I have used, uses powers of seven. I typically used date and time (to the second) as a seed number. It was easy to program, and good enough to shuffle a virtual deck or generate a random 1-100. Obviously, I would not base encryption on it, though.
