[Tutor] A file containing a string of 1 billion random digits.

R. Alan Monroe amonroe at columbus.rr.com
Sun Jul 18 19:05:28 CEST 2010


> That's the goal of the latest version of my script at
> <http://tutoree7.pastebin.com/5XYaaNfp>. The best I've been able to do
> so far is a file with 800 million digits.

I don't think anyone else has suggested this: the numpy module can
generate random bytes and has a built-in tofile() method.

Alan



More information about the Tutor mailing list