Brian Dunning's FileMaker Custom Functions

RandomString ( stringLength ; minCharCode ; maxCharCode )

Returns a string of random characters.

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

Jeremy Bante   Jeremy Bante

https://github.com/jbante/

Share on Facebook Share on Twitter

  Sample input:
List (
RandomString ( 10 ; 65 ; 90 ); // A-Z
RandomString ( 10 ; 32 ; 126 ); // ASCII printable characters
RandomString ( 10 ; "" ; "" ) // possible characters with Char function
)
  Sample output:
OJQKMPBLWQ
3S/ezuJFyP
짝ᰨ憑ﲬ춧闳豕姿甒

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

Returns a random text string of length stringLength. The returned string can include characters from the range between minCharCode and maxCharCode, up to the entire character set supported by FileMaker, excluding ASCII control characters (code 0 through 32, and 127).

 

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.