Re: 8 Digit random number

2008-05-08 Thread Mr. Gecko
Yeah I knew that before in the days that I made c programs but it been so long that I forgot. On May 8, 2008, at 6:57 AM, Gregory Weston wrote: Since neither the question nor the answer is particularly Cocoa- related, I'm following up off-list. I just wanted to make sure that you understood

Re: 8 Digit random number

2008-05-07 Thread Mr. Gecko
Thanks That worked grate On May 7, 2008, at 4:17 PM, Jean-Daniel Dupas wrote: call srandomdev() before the first call to change the initial state. see man random for all details. Le 7 mai 08 à 23:10, Mr. Gecko a écrit : that is not really random maybe if I had added unix time stamp inside o

Re: 8 Digit random number

2008-05-07 Thread Seth Willits
On May 7, 2008, at 2:02 PM, Jean-Daniel Dupas wrote: Le 7 mai 08 à 22:54, Seth Willits a écrit : 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 1000 to

Re: 8 Digit random number

2008-05-07 Thread Mr. Gecko
I'll try On May 7, 2008, at 4:02 PM, Jean-Daniel Dupas wrote: long value = random() % 1000; ___ 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 co

Re: 8 Digit random number

2008-05-07 Thread Jean-Daniel Dupas
Le 7 mai 08 à 22:54, Seth Willits a écrit : 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 1000 to in applescript and receive the retuned value

Re: 8 Digit random number

2008-05-07 Thread Herb Petschauer
My knee jerk response was: (rand() % 9000) + 1000 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 > >

Re: 8 Digit random number

2008-05-07 Thread Shawn Erickson
On Wed, May 7, 2008 at 1:50 PM, Mr. Gecko <[EMAIL PROTECTED]> 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 1000 to > in applescript and receive the retune

Re: 8 Digit random number

2008-05-07 Thread Seth Willits
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 1000 to in applescript and receive the retuned value. Use rand()? -- Seth Willits

8 Digit random number

2008-05-07 Thread Mr. Gecko
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 1000 to in applescript and receive the retuned value. ___ Cocoa-dev mailing list (Cocoa-dev