Random my arraylist objects !

Results 1 to 2 of 2

Thread: Random my arraylist objects !

  1. #1
    Join Date
    Dec 1969

    Default Random my arraylist objects !

    yes im trying to random my collection of my arraylist in C# !!<BR><BR>but i just cant figured it out. Any ideas ?<BR><BR>thanx

  2. #2
    Join Date
    Dec 1969

    Default not sure if its the best method

    but it&#039;d work (and since i am not fluent in c#, i&#039;ll just psuedo-code it)<BR><BR>Declare a New SortedList<BR>For Each item in the ArrayList<BR> AddtoSortedList( GUID.NewGUID.ToString(), item)<BR>Next<BR><BR>Now you&#039;ll have a SortedList in "random" order (ordered by random GUIDs)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts