Double

extension Double
  • Generate a random Double bounded by a closed interval range.

    Declaration

    Swift

    public static func random(_ range: ClosedRange<Double>) -> Double
  • Generate a random Double bounded by a range from min to max.

    Declaration

    Swift

    public static func random(min: Double, max: Double) -> Double