How to create a random pair in haskell -
hi trying create random pairs of specific number of mines in minessweeper game.
so need make method takes mines number, (width,hight) , returns list of random positions [(x,y)]
https://www.fpcomplete.com/school/starting-with-haskell/libraries-and-frameworks/randoms
this should help. use system.random
module (https://hackage.haskell.org/package/random-1.1/docs/system-random.html)
Comments
Post a Comment