Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Generating alphanumeric gibberish?

Name: Anonymous 2010-01-12 14:58

What's a simple (preferably loopless) way to generate a large amount of alphanumeric gibberish? Any language is acceptable.

In PHP, I thought this would be perfect:

hexdec(mt_rand(1.e999999999, 1.e9999999999));

But it doesn't work due to restrictions on the length of int. :(

Name: Anonymous 2010-01-13 1:57

>>19
I got it to run in about 3.9 seconds.

(time (for ((i (in-range 1 100000))) (gibberish 100)))
cpu time: 3873 real time: 3874 gc time: 16
(time (for ((i (in-range 1 100000))) (gibberish 100)))
cpu time: 3924 real time: 3935 gc time: 4
(time (for ((i (in-range 1 100000))) (gibberish 100)))
cpu time: 3912 real time: 3911 gc time: 12

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List