Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Refer people to randomOne if they try randomSample
  • Loading branch information
JordanMartinez committed Nov 2, 2020
commit 9db0d1e3b7d7455b188fd877af93bed2f7740d6f
2 changes: 1 addition & 1 deletion src/Test/QuickCheck/Gen.purs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ randomSample' n g = do
seed <- randomSeed
pure $ sample seed n g

-- | Get a random sample of 10 values
-- | Get a random sample of 10 values. For a single value, use `randomOne`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment needs updating now

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

randomSample :: forall a. Gen a -> Effect (Array a)
randomSample = randomSample' 10

Expand Down