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.

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: