Created
April 17, 2023 19:27
-
-
Save SevanBadal/7e31bf2ca94bffeafb0712089c99813b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import System.Random | |
main :: IO () | |
main = do | |
g1 <- newStdGen | |
g2 <- newStdGen | |
let tenRandomLetters = take 10 (randomRs ('a', 'z') g1) | |
let randomInts = take 10 (randomRs (1, 10) g2) | |
let mixLettersAndNumbers = [(letter, number) | letter <- randomLetters, number randomInts] | |
print mix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment