I'm having an error when compiling a project in Xcode, it says:
Expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions
here's the code:
static func random(min: CGFloat, max: CGFloat) -> CGFloat {
return CGFloat(Float(arc4random()/0xFFFFFFFF) * (max - min) + min)
}