Question on Randomness

Me too.

I propose this:

Make three lists of 100 digits each.

The first one will be computer generated.

The second will be hand selected by you, so as to appear as random as you can make it.

For the 3rd, go to your local gaming store and pick up a 10-sided die. Roll it 100 times and record the results.

Then see if we can determine which list is which.

Unless the OP is writing his own arithmetic-based prng, the computer and dice generated lists will be indistinguishable unless they’re very long. Let’s stick with the human and computer generated lists here.

Quoth Pleonast:

This isn’t really any better, since RAND_MAX still isn’t a multiple of 47. Some numbers will still get the extras; they’ll just be spread out across the whole range instead of clustered at the bottom. A truly uniform method will have to have a non-fixed number of times it calls the rand function, so that (using your RAND_MAX = 63 example) if you get a result of 1 through 47 you keep it, but if you get a 48 or higher, you roll the dice again.

I would suggest wiring your computer to this device as well as a webcam and then connect together an OCR (optical character recognition) software and a small python script in order to recognize the numbers coming out.

That should give you “real” randomness, not just pseudo random numbers