• 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 sorting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Random sorting


  • Subject: Re: Random sorting
  • From: Ben Dougall <email@hidden>
  • Date: Mon, 6 Jan 2003 22:29:29 +0000

but surely that will allow you to pick the same thing twice, which isn't what's wanted here?

Nope, it doesn't. You are essentially replacing the one you picked out with the last element and then decrementing the count of the array. The item picked is removed.


then decrementing the count of the array

i see. i wasn't aware that that part took place
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Random sorting (From: Greg Titus <email@hidden>)

  • Prev by Date: Re: Random sorting
  • Next by Date: Current Selector
  • Previous by thread: Re: Random sorting
  • Next by thread: Re: Random sorting
  • Index(es):
    • Date
    • Thread