cast floats to CGFloat for randomColor