I am working on calculator application. For me all operations are cleared except “rand”. Could any one tell me how to generate random number of some number by selecting rand.
For example
initially i select one(1) then rand… if so it has to be displayed random number of one(1).
In objective-C you should use (for between 0 and 1)
Imagine that you want a number between 0 and 50 with decimals, then you should do:
You will get something like 40.123