How to generate a file, of a given length, filled with random content, with Python?
<p>I need to generate a file which is filled with random contents, and the size of the file should be of exactly size, no more, no less, like 1000 bytes. I have a small piece of C code that can finish this task, but I need to do it in Python.</p>
