12
According to this documentation,
arc4random_uniform()is recommended over constructions likearc4random() % upper_boundas it avoids "modulo bias" when the upper bound is not a power of two.
How bad is the bias? For example if I generate random numbers with an upper bound of 6, what's the difference between using arc4random with % and arc4random_uniform()?