Re: How to create and read from a stream of random characters?

2009-01-12 Thread GS
(defn seq-of-rand-strings [maxlength]   (repeatedly (fn []     (apply str (take (rand-int maxlength)                      (repeatedly #(char (+ (int \a) (rand-int 26) user= (take 3 (seq-of-rand-strings 10)) (kae xwuwyp xa) Thanks Chouser. I learned some useful and interesting

How to create and read from a stream of random characters?

2009-01-11 Thread GS
Hi, For the purposes of testing another function (not discussed here), I wrote a function to generate random strings. This is what I ended up with after some trial and error. (defn generate-data [size maxlength] ; Returns a collection of 'size random strings, each at most 'maxlength

Re: How to create and read from a stream of random characters?

2009-01-11 Thread Chouser
On Sun, Jan 11, 2009 at 9:35 PM, GS gsincl...@gmail.com wrote: Hi, For the purposes of testing another function (not discussed here), I wrote a function to generate random strings. This is what I ended up with after some trial and error. (defn generate-data [size maxlength] ;