My knee jerk response was: (rand() % 90000000) + 10000000 I like "clamp/wrap" better though :-)
2008/5/7 Seth Willits <[EMAIL PROTECTED]>: > On May 7, 2008, at 1:50 PM, Mr. Gecko wrote: > > Hello I am needing to find out how to do an 8 digit random number in > > cocoa. > > If there are no way than I can use random number from 10000000 to > > 99999999 in applescript and receive the retuned value. > > > > Use rand()? > > > -- > Seth Willits > > > > > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/bogvardi%40gmail.com > > This email sent to [EMAIL PROTECTED] > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]