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
|