I read in a book that it /dev/randomlooks like an endless file, but when I set up the following codes to see what the content looks like, it doesn't print anything.
with open("/dev/random") as f:
for i in xrange(10):
print f.readline()
By the way, when I tried this with help /dev/urandom, it worked.
source
share