iPhone SDK: How to generate a random time of day

Posted by bigdave on Stack Overflow See other posts from Stack Overflow or by bigdave
Published on 2010-05-03T16:20:02Z Indexed on 2010/05/03 16:28 UTC
Read the original article Hit count: 363

Filed under:
|
|

Hello all,

I am having some problems trying to figure out the best way of generating a random time of day. For instance, if I want to choose a random time between the hours of 9am and 5pm, what would be the best way with the least amount of overhead on the device? I guess I need someone to point me in the right direction. Thanks!

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about xcode