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

c - Calling a function within a loop -

How i fill combobox items in Radgridview manually using in vb.net -

sql - Transaction With db context in C# -