Int
public extension Int
An extension for allDouble
public static functions.
-
A random
Int
with no limitiations.Note
See
Random.swift
documentation for more information.Declaration
Swift
static func randomInt() -> Int
Return Value
Int
, representing a randomInt
. -
A random
Int
value betweenrange.min
andrange.max
.Note
See
Random.swift
documentation for more information.Declaration
Swift
static func randomInt(withinRange range: IntRange) -> Int
Return Value
Int
, representing a randomInt
value within the lower and upperrange
limits. -
A random
Int
value between 0 andrange.upper
.Note
See
Random.swift
documentation for more information.Declaration
Swift
static func randomInt(withUpperLimitOf range: IntRange) -> Int
Return 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 }