October 24th, 2009, 01:39 PM
This forum seems pretty empty, but thought I'd ask anyways. I just created a view based application, and I want to initialze a varibale upon the application launching.
int r = arc4random() % 74;
The problem is, the number needs to be random every time the app is launched. I was wondering where the proper place to declare such a variable would be.
January 2nd, 2010, 04:58 PM
I would say initialize it right before you need it. Is there some problem that you've encountered that prevents this?
January 6th, 2010, 10:40 PM
I want to know that in which programming language you are using this integer function.
Originally Posted by Wayfarer247
tell me the name of the language then it will be easy to get through this problem