Hacker News new | ask | show | jobs
by LinaLauneBaer 4335 days ago
arc4random_uniform
1 comments

you're right, in my example arc4random_uniform works perfectly and unlike rand() you don't have to seed.

delay = NSTimeInterval(arc4random_uniform(900)+100) / 1000

Not sure why I didn't do that in the first place...