Structures
The following structures are available globally.
-
Combines Gen member lookup with the “safe” extensions
See moreDeclaration
Swift
@dynamicMemberLookup public struct SafeGen<T>
-
A Type Erased
See moreRandomNumberGenerator
Declaration
Swift
public struct AnyRandomNumberGenerator : RandomNumberGenerator
-
A Linear Congruential
RandomNumberGenerator
of pseudo-random valuesNote
The LCRNG is independent. Values generated by one instance will have no effect on othersNote
The LCRNG is deterministic. Any instance initialized by the same seed will generate the same sequence of values
Declaration
Swift
public struct LCRNG : RandomNumberGenerator