title: Random File Generator (again!)
body: <p>I badly need a random file generator that generates a <strong>truly random, non-compressible</strong> dummy files.</p>
  
  <p>I ended up with this delphi code. It <em>works</em>, but it's <strong>painfully sloooow</strong></p>
  
  <pre><code> var
      Buf     : Integer;
      TheFile : TFileStream;
   begin
        TheFile := TFileStream.Create(FileName, fmCreate OR fmOpenReadWrite);
        with TheFile do
        begin
             for i := 0 to FileSize do    // Iterate
             begin
                  Buf := Random(999999) * i;
                  WriteBuffer(Buf, SizeOf(Buf));
             end;    // for
        end;    // with
   end,
  </code></pre>
  
  <p><strong>My question is: Is there a <em>fast</em> random file generator that I can use?</strong> Both Delphi code and/or commandline tools are acceptable as long as:</p>
  
  <ol>
  <li>I can run it on Windows <em>without</em> manual intervention (I need this for my tests, no intervention is allowed)</li>
  <li>It's <strong>fast</strong></li>
  <li>Files generated is <strong>non-compressible</strong> (ie. compressing the generated file results in no space saving)</li>
  </ol>
  
  <hr>
  
  <p><strong>EDIT</strong> For those interested, I applied the advice I received here and <a href="http://pastebin.com/SHwPBFZB" rel="nofollow">made this function</a>, it's fast enough &amp; 7zip has hard time compressing the generated data.</p>