Index

RBRandom.swift

Classes


RBRandom

Random value generation.

Functions

Generates a random UUID/GUID string.
@param includeHyphens : Whether hyphens should be included.
@returns The random UUID string.
public class func uuidString(withHyphens includeHyphens: Bool) -> String

Generates a random unsigned integer within the given range.
@param minimumValue : The minimum value of the range.
@param maximumValue : The maximum value of the range.
@returns The random unsigned integer value.
public class func unsignedInteger(withMinimumValue minimumValue: UInt32, maximumValue: UInt32) -> UInt32

Generates a random signed integer within the given range.
@param minimumValue : The minimum value of the range.
@param maximumValue : The maximum value of the range.
@returns The random signed integer value.
public class func integer(withMinimumValue minimumValue: Int, maximumValue: Int) -> Int

Generates a random double value within the given range.
@param minimumValue : The minimum value of the range.
@param maximumValue : The maximum value of the range.
@returns The random double value.
public class func double(withMinimumValue minimumValue: Double, maximumValue: Double) -> Double

Generates a random boolean value.
public class func boolean() -> Bool

Generates a random lorum ipsum string with the given word count.
@param wordCount : The number of words to include in the string.
@returns The random lorum ipsum string.
public class func lorumIpsum(withWordCount wordCount: Int) -> String