Contents

SSRandomFloatBetween(_:_:)

Returns a random float value.

Declaration

func SSRandomFloatBetween(_ a: CGFloat, _ b: CGFloat) -> CGFloat

Parameters

  • a:

    The first floating-point value.

  • b:

    The second floating-point value.

Return Value

A random floating-point value between the values a and b, inclusive.

Discussion

The Screen Saver framework automatically seeds the random() C function to generate the number.

See Also

Utilities