• 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: Random numbers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Random numbers?


  • Subject: Re: Random numbers?
  • From: "I. Savant" <email@hidden>
  • Date: Wed, 4 Jul 2007 10:52:56 -0400

On Jul 4, 2007, at 10:43 AM, William Squires wrote:
What's the proper way to get a random number in ObjC/Cocoa? I need it in an NSNumber to put in an NSArray. Thanks.


The same way it's done in C++. You can then create an NSNumber with the result.

--
I.S.



_______________________________________________

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: 
 >Random numbers? (From: William Squires <email@hidden>)

  • Prev by Date: Random numbers?
  • Next by Date: Re: NSPopupButton "None" Selection
  • Previous by thread: Random numbers?
  • Next by thread: Re: Random numbers?
  • Index(es):
    • Date
    • Thread