Int
public extension Int
An extension for allDouble public static functions.
-
A random
Intwith no limitiations.Note
See
Random.swiftdocumentation for more information.Declaration
Swift
static func randomInt() -> IntReturn Value
Int, representing a randomInt. -
A random
Intvalue betweenrange.minandrange.max.Note
See
Random.swiftdocumentation for more information.Declaration
Swift
static func randomInt(withinRange range: IntRange) -> IntReturn Value
Int, representing a randomIntvalue within the lower and upperrangelimits. -
A random
Intvalue between 0 andrange.upper.Note
See
Random.swiftdocumentation for more information.Declaration
Swift
static func randomInt(withUpperLimitOf range: IntRange) -> IntReturn Value
Int, representing a random Int value between 0 andrange.upper. -
Returns value converted to
CGFloat.Declaration
Swift
public var cgFloatValue: CGFloat { get } -
Returns value converted to
Double.Declaration
Swift
public var doubleValue: Double { get }
Int Extension Reference