Q:

Testing random number generation

I have a program which generates random numbers.  How can I test if the random number generator is generating actual random numbers? 

A:

If numbers are being computer generated, they won't be truly random, they will be pseudo-random numbers. 
I would head over to math.stackexchange.com to get a good understanding of the problem you are trying to test. 
Some good, related questions are:
How to generate REAL random numbers with some random and pseudo random
Are these numbers random? 
You should also look in to ways you can automate the testing.  To truly test this you will need to test a very large sample size, and then visualise the distribution of results. 

A:

Try this document - Chapter 10 of Beautiful Testing
For a simple example, have a look at this example blog post from Alan Page

