Haskell and random numbers

后端 未结 4 961
耶瑟儿~
耶瑟儿~ 2021-02-02 13:31

I\'ve been messing with Haskell few days and stumbled into a problem.

I need a method that returns a random list of integers ( Rand [[Int]] ).

So, I defined a ty

4条回答
  •  爱一瞬间的悲伤
    2021-02-02 14:12

    You are recreating MonadRandom on Hackage. If this is more than just an experiment to see if you can do it, you might want to use that library instead.

提交回复
热议问题