8
votes
1answer
60 views

Random Coin Toss in Haskell

Learn You a Haskell gives an exercise to implement the following function: ...
4
votes
1answer
265 views

Function to produce unique random numbers

I've been learning Haskell for a few weeks after coming from a C# background. I've written a function to return a number of unique Ints from a specified range: ...
4
votes
1answer
18 views

Adding a duplicate entry randomly into a list in haskell using random monad

There's a new version of this as v2 - Adding a duplicate entry randomly into a list in haskell using random monad I wrote this trying to set up a Haskell testcase. The aim is to take a list and add ...
3
votes
1answer
19 views

Implementing `randoms`

Learn You a Haskell presents the randoms function. I implemented it as follows: ...
2
votes
1answer
33 views

v2 - Adding a duplicate entry randomly into a list in haskell using random monad

Next version of Adding a duplicate entry randomly into a list in haskell using random monad I wrote this trying to set up a Haskell testcase. The aim is to take a list and add a single duplicate from ...
1
vote
2answers
267 views