Module
Test.QuickCheck.Gen
- Package
- purescript-quickcheck
- Repository
- purescript/purescript-quickcheck
This module defines the random generator monad used by the Test.QuickCheck
module, as well as helper functions for constructing random generators.
#repeatable Source
repeatable :: forall a b. (a -> Gen b) -> Gen (a -> b)
Create a random generator for a function type.
#oneOf Source
oneOf :: forall a. NonEmptyArray (Gen a) -> Gen a
Create a random generator which selects and executes a random generator from a non-empty array of random generators with uniform probability.
#arrayOf1 Source
arrayOf1 :: forall a. Gen a -> Gen (NonEmptyArray a)
Create a random generator which generates a non-empty array of random values.
#elements Source
elements :: forall a. NonEmptyArray a -> Gen a
Create a random generator which selects a value from a non-empty array with uniform probability.
#perturbGen Source
perturbGen :: forall a. Number -> Gen a -> Gen a
Perturb a random generator by modifying the current seed