Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 08-27-2008, 10:32 PM   #6 (permalink)
spuy767
New Member
 
Join Date: Aug 2008
Posts: 100
spuy767 is on a distinguished road
Default

They coud have strived to make it a bit simpler to use, or at least made the documentation more clear.

NSNUmber *rand1;
rand1 = [NSNumber numberWithUnsignedInt:arc4random()];

to set the range:
fmod([rand1 floatValue], 1000.0); //random number from 0-1000;
spuy767 is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,427
Threads: 94,024
Posts: 402,577
Top Poster: BrianSlick (7,978)
Welcome to our newest member, shakiraeb60
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:16 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.