Re: Random numbers?
Re: Random numbers?
- Subject: Re: Random numbers?
- From: Manfred Schwind <email@hidden>
- Date: Thu, 5 Jul 2007 15:55:02 +0200
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.
Besides the already mentioned ways you could also read bytes out of /
dev/random and then put it into an NSNumber.
man 4 random
The random device produces uniformly distributed random byte values
of potentially high quality [...]
Regards,
Mani
--
http://www.mani.de
iVolume - Loudness adjustment for iTunes.
LittleSecrets - The encrypted notepad.
_______________________________________________
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