Arbitrary

public protocol Arbitrary

A type conforming to the Arbitrary protocol can be used to generate arbitrary (random) values

  • Returns a generator capable of randomly generating every possible value of the conforming type

    Declaration

    Swift

    static var arbitrary: Gen<Self> { get }