module Meth where
import System.Random
gen :: StdGen
gen = mkStdGen 42
shuffles:: StdGen->[(Int,Int)]
shuffles g = take 28(randoms g :: [Int])
I am trying to generate 28 random numbers I keep getting an error error
Couldn't match type ‘Int’ with ‘(Int, Int)’ Expected type: [(Int, Int)] Actual type: [Int] In the expression: take 28 $ randoms g :: [Int] In an equation for ‘shuffles’: shuffles g = take 28 $ randoms g :: [Int]
take 28 $ randoms g :: [Int]
– Johannes KuhnInt
and trying to return a list of(Int, Int)
. – Lee