• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 8 Digit random number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 8 Digit random number


  • Subject: Re: 8 Digit random number
  • From: "Herb Petschauer" <email@hidden>
  • Date: Wed, 7 May 2008 14:01:40 -0700

My knee jerk response was:
(rand() % 90000000) + 10000000

I like "clamp/wrap" better though :-)

2008/5/7 Seth Willits <email@hidden>:

> 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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >8 Digit random number (From: "Mr. Gecko" <email@hidden>)
 >Re: 8 Digit random number (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: 8 Digit random number
  • Next by Date: Re: 8 Digit random number
  • Previous by thread: Re: 8 Digit random number
  • Next by thread: Re: 8 Digit random number
  • Index(es):
    • Date
    • Thread