Haskell 99 Problems - Problem 23

/ Published in: Haskell
Save to your folder(s)

problem 23, Extract a given number of randomly selected elements from a list.

Prelude System.Random>rnd_select "abcdefgh" 3 >>= putStrLn


Two problems: 1) How to return a list, and 2) how to sample without duplication

URL: http://haskell.org/haskellwiki/99_questions/21_to_28

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.