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 09-05-2008, 09:18 AM   #5 (permalink)
roberthuttinger
Registered Member
 
roberthuttinger's Avatar
 
Join Date: Sep 2008
Posts: 96
roberthuttinger is on a distinguished road
Default

what about a range between numbers? I cant find this. in php it would be something like rand(10,20);. Now I need to get a number in specific ranges based on user input.

added note: i guess I could do 1 + arc4random() %10 + 10 for a number 11 - 20 but there hs to be a more elegant way.
tia!
rob

Last edited by roberthuttinger; 09-05-2008 at 09:24 AM. Reason: poo poo an unelegant way
roberthuttinger is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,483
Threads: 94,041
Posts: 402,628
Top Poster: BrianSlick (7,978)
Welcome to our newest member, herminaln29
Powered by vBadvanced CMPS v3.1.0

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