FROM : Jean-Daniel Dupas
DATE : Wed May 07 23:02:04 2008
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 10000000 to
>> 99999999 in applescript and receive the retuned value.
>
> Use rand()?
You probably mean random(3).
long value = random() % 10000000;
DATE : Wed May 07 23:02:04 2008
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 10000000 to
>> 99999999 in applescript and receive the retuned value.
>
> Use rand()?
You probably mean random(3).
long value = random() % 10000000;
| Related mails | Author | Date |
|---|---|---|
| Mr. Gecko | May 7, 22:50 | |
| Seth Willits | May 7, 22:54 | |
| Shawn Erickson | May 7, 22:58 | |
| Herb Petschauer | May 7, 23:01 | |
| Jean-Daniel Dupas | May 7, 23:02 | |
| Mr. Gecko | May 7, 23:05 | |
| Seth Willits | May 7, 23:23 | |
| Mr. Gecko | May 7, 23:24 | |
| Mr. Gecko | May 8, 15:27 |






Cocoa mail archive

