I\'m trying to create a random float between 0.15 and 0.3 in Objective-C. The following code always returns 1:
int randn = (random() % 15)+15; float pscale =
Easiest.
+ (float)randomNumberBetween:(float)min maxNumber:(float)max { return min + arc4random_uniform(max - min + 1); }