I'd like to make sure a new random (int) number doesn't equal the previous.
In ActionScript 3 I could just run a little while loop check against the
previous value. So while it wasn't equal to the last it would be used. So
this isn't using an Array by any means for anything.
What's the best way to do this in Obj-C? The same way in AS3? I just want to
make sure I set it correctly.
E.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to