At 6:01 PM +0100 7/8/06, Stephen Dodd wrote:
Does anyone know a reasonable method to shuffle paired data?

Thanks to Mars Saxman, Joe Huber, Navdeep Bains, William Squires who all had excellent suggestions involving sorting classes, dictionaries, creative use of index.SortWith and shuffled sister index arrays. :) (To see the summary, view the thread: http://support.realsoftware.com/listarchives/realbasic-nug/2006-07/msg00298.html )

One other solution which is more of a hack than a solution is to make a single dimension array with your data sandwiched in a string delimited with a unique delimiter. Shuffle it then use the split function to either access the data or sort it back out into individual arrays.


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to