Randomizable

public protocol Randomizable

Mechanica

Types conforming to Randomizable protocol can generate a random value.

  • Mechanica

    Returns a random value bounded by a closed interval range.

    Declaration

    Swift

    static func random(min: Self, max: Self) -> Self