Random

public struct Random

Random value generator helpers

  • Return random value uniformly distributed on specified interval

    Declaration

    Swift

    public static func within<T>(_ range: ClosedRange<T>) -> T
    where T: FloatingPoint, T: ExpressibleByFloatLiteral