IntegerRandomizable
public protocol IntegerRandomizable
Mechanica
- TODO: Rename this protocol FixedWidthIntegerRandomizable
with Swift 4.
-
Mechanica
Returns a random value between
min
andmax
values. MechanicaReturns a random value bounded by a closed interval range.
Declaration
Swift
static func random(min: Self, max: Self) -> Self