• 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: Chris Blackburn <email@hidden>
  • Date: Wed, 4 Jul 2007 21:08:37 +0100

Well, the best way I found when I had to do it was to use the RC4 random number generator in the OpenSSL package. This might be a bit of overkill for your app depending on how much it does but it's the best solution I found.

Chris

On 4 Jul 2007, at 15:43, 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.

_______________________________________________

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:
40softhome.net


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

  • Prev by Date: NSPredicate problem: ANY attribute BETWEEN { 1, 10 }
  • Next by Date: Re: Random numbers?
  • Previous by thread: Re: Random numbers?
  • Next by thread: Re: Random numbers?
  • Index(es):
    • Date
    • Thread