Protocols

The following protocols are available globally.

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

    See more

    Declaration

    Swift

    public protocol Arbitrary

RandomInRangeable

  • Indicates a type which can provide random values within a Range

    Note

    Many existing Swift classes support this format despite not deriving from a protocol
    See more

    Declaration

    Swift

    public protocol RandomInRangeable : Comparable