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 - Show more from this author
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.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: