Brian Dunning's FileMaker Custom Functions

RandomPick ( theList ) ver 1.1

Randomly select a value from a dynamic list

  Average rating: 4.4 (24 votes) Log in to vote

Geoff Wells   Geoff Wells
DataIsland Software LLC

Share on Facebook Share on Twitter

  Sample input:
RandomPick ( "List value one¶List value two¶List value three" )
  Sample output:
List value two

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

Use this function in a script to display a random value from one or more dynamic lists. Use the list field name as the script parameter to pass to the function. Different buttons can use the same script to choose from different lists.

This updated version strips off the trailing carriage return which messes up some other of my custom functions.



Log in to post comments.


Note: these functions are not guaranteed or supported by 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 16 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: