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

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -