ars/uicolor-utilities — pull request #8 by alistra (2012-11-29 14:40:55+00:00)
Title: Fix random color division bug

[UIColor colorWithRed:green:blue:alpha:] takes color arguments as floats in range [0,1]. The division RAND_MAX / random() may be at least 1, at most RAND_MAX.

The division should go other way (random()/RAND_MAX) so it can be [0,1]