How to get numbers from /dev/random using Python?
<p>I'm trying to write a python script to test the randomness of /dev/random, but I can't get it to give me any number.  My code looks like this</p>

<p>with open("/dev/random", 'rb') as file:
     print f.read(10)</p>

<p>which I believe is supposed to print out 10 bytes from /dev/random, but instead of numbers, it prints out weird characters (non-standard letters and no numbers).  Any idea what I'm doing wrong?</p>

<p>Thank you!</p>
