Re: Best way to get a non-repeating random number?
Re: Best way to get a non-repeating random number?
- Subject: Re: Best way to get a non-repeating random number?
- From: Uli Kusterer <email@hidden>
- Date: Tue, 14 Apr 2009 02:26:39 +0200
On 14.04.2009, at 02:17, WT wrote:
On Apr 14, 2009, at 1:57 AM, Uli Kusterer wrote:
No you won't. It's a *random* number generator. The seed simply
means you get a different sequence of random numbers. However,
random really means RANDOM. I.e. it's perfectly possible to get the
same number three times in a row during a sequence. That would
still be random.
Sorry to nitpick, but no, it *isn't* a random number generator.
Fully agree. I had that in there, but removed 'pseudo' because I
thought it might confuse the point: That "random" includes getting the
same number twice.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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