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 random Int.

  • A random Int value between range.min and range.max.

    Note

    See Random.swift documentation for more information.

    Declaration

    Swift

    static func randomInt(withinRange range: IntRange) -> Int

    Return Value

    Int, representing a random Int value within the lower and upper range limits.

  • A random Int value between 0 and range.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 and range.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 }