Re: [Haskell-cafe] How to generate random string?

2009-09-20 Thread mf-hcafe-15c311f0c
uck again, just post more code. matthias On Fri, Sep 18, 2009 at 10:14:53AM -0700, Snouser wrote: > To: haskell-cafe@haskell.org > From: Snouser > Date: Fri, 18 Sep 2009 10:14:53 -0700 (PDT) > Subject: Re: [Haskell-cafe] How to generate random string? > > > > > Snou

Re: [Haskell-cafe] How to generate random string?

2009-09-18 Thread Snouser
Snouser wrote: > > I need to generate a random string from 1 to 30. > > This is the parts I've done so far. > > unikString xs | let x = unsafePerformIO (randomRIO (1,30)) elem x xs = x : > unikString xs > | otherwise = unikString xs > > How do I proceed? > > I need t