Protocols
The following protocols are available globally.
-
A type conforming to the Arbitrary protocol can be used to generate arbitrary (random) values
See moreDeclaration
Swift
public protocol Arbitrary
-
Indicates a type which can provide random values within a Range
Note
Many existing Swift classes support this format despite not deriving from a protocolDeclaration
Swift
public protocol RandomInRangeable : Comparable