Generating a large random string

Paul Rubin http
Thu Feb 19 22:42:04 EST 2004


"Sean Ross" <sross at connectmail.carleton.ca> writes:
> s = open("/dev/urandom").read(1000000)
> 
> is s a string containing one million letters [a-zA-Z] and no other
> types of characters, as the OP is looking for?

Oh oops, I didn't catch that part.  It's a million random bytes.
Sorry.



More information about the Python-list mailing list