Brian Dunning's FileMaker Custom Functions

Permutation ( ElementList ; PermList )

Recursive function to permutate a CR-separated list randomly

  Average rating: 3.7 (39 votes) Log in to vote

Sven Siemsen   Sven Siemsen
FB&S Farenholtz & Partner GbR
http://www.fb-s.biz

Share on Facebook Share on Twitter

  Sample input:
Permutate ( "1¶2¶3¶4"; "" )
  Sample output:
"4¶2¶1¶3"

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This function shuffles the lines of a multi-line input.
Due to FM8's 10,000 recursive function call limit, no more than 10,000 lines can be shuffled with this function.

The second parameter is only used for recursion and should always be set to "", otherwise you may get unexpected results.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.