Int
struct Int : SignedInteger, Comparable, Equatable
-
Mechanica
Returns a random Int bounded by a closed interval range.
Declaration
Swift
public static func random(_ range: ClosedRange<Int>) -> Int
-
Mechanica
Returns a random Int between the given range.
Declaration
Swift
public static func random(min: Int, max: Int) -> Int