Mac OS X, Windows
FMP 7, 8, 8.5, 9, 10, 11
File Type: FP7
FileSize: ~ .05 megabytes
This function randomizes the order of a return delimited list.
// Function: ListRandomizer (theList)
// Parameter: theList, a return delimited list
// Result: Returns the values of theList in random order
// Johan Småros, PositionEtt AB, 2009-06-24
theLength = ValueCount ( theList ) ;
theChosen = Ceiling ( theLength * Random )
If( theLength ≤ 1 ; theList ;
MiddleValues ( theList ; theChosen ; 1 ) & ListRandomizer(LeftValues(theList ; theChosen -1) & RightValues(theList ; theLength-theChosen)))
FileMaker Inc. provides this content on an “As Is” basis, without any warranty, and subject to the terms of the FileMaker Technical Network Agreement. FileMaker makes no representations and is not liable for any content or related information. You may use the content as part of your own solutions and for your customers, but you may not otherwise publicly distribute any content that you did not submit. ©2009-2011 FileMaker, Inc. All Rights Reserved. FileMaker is a trademark of FileMaker, Inc. registered in the U.S. and other countries.