Skip to content

Instantly share code, notes, and snippets.

@njsand
njsand / gist:94791a518c16818c31a5a13e303b3a00
Created Apr 27, 2017
Output random letters from [a-zA-Z] (haskell)
View gist:94791a518c16818c31a5a13e303b3a00
-- Output random letters from [a-zA-Z].
import System.Random
import System.Environment
import Control.Applicative
main :: IO ()
main = do
args <- getArgs
-- Default to 15 chars if no arg is supplied.