import System.Random import Data.List a = [0,1,2,3,3,1,1,2,0,0] b = [a, a, a, a] f 3 _ = randomRIO (0,3) f _ 3 = randomRIO (0,3) z x y = zipWithM f x y
Standard input is empty
[0,1,2,0,0,1,1,2,0,0] [0,1,2,0,0,1,1,2,0,0] [0,1,2,1,1,1,1,2,0,0] [0,1,2,0,0,1,1,2,0,0] [0,1,2,1,0,1,1,2,0,0] [0,1,2,3,0,1,1,2,0,0] [0,1,2,0,3,1,1,2,0,0] [0,1,2,0,2,1,1,2,0,0] [0,1,2,1,2,1,1,2,0,0] [0,1,2,0,3,1,1,2,0,0] [0,1,2,0,0,1,1,2,0,0] [0,1,2,1,0,1,1,2,0,0] [0,1,2,1,0,1,1,2,0,0] [0,1,2,1,0,1,1,2,0,0] [0,1,2,0,3,1,1,2,0,0]