I need to generate a random number with fixed length in iOS 7-8, for me it is 13 digits. All the answers here lead to using arc4random_uniform
, but this returns only a 32Bit value. 32Bit has a maximum of 10 digits, thus I need something that returns bigger values.
Any recommendations on how to do this?