Float
extension Float
-
Generate a random Float bounded by a closed interval range.
Declaration
Swift
public static func random(_ range: ClosedRange<Float>) -> Float
-
Generate a random Float bounded by a range from min to max.
Declaration
Swift
public static func random(min: Float, max: Float) -> Float