diff --git a/lib/aiken.ak b/lib/aiken.ak index 2510310..c3dd688 100644 --- a/lib/aiken.ak +++ b/lib/aiken.ak @@ -112,6 +112,23 @@ pub type Option { None } +/// Minimum Plutus Version | 1 +/// --- | --- +/// +/// A type that represent Pseudo-random generated values. +pub type PRNG { + Seeded { seed: Int, choices: List } + Replayed { choices: List } +} + +/// Minimum Plutus Version | 1 +/// --- | --- +/// +/// A type to capture random computation that may depend on one another. Useful +/// for constructing (pseudo-)random values for property-based test. +pub type Fuzzer = + fn(PRNG) -> Option<(PRNG, a)> + /// Minimum Plutus Version | 1 /// --- | --- ///