Developer Documentation Library > Interviewer - Server > Reference > RandomPassword
 
RandomPassword
Syntax
RandomPassword([<value> [, <min_length> [, <max_length>]]])
Example
The following script generates a password that is between 10 and 16 characters long and contains a random selection of digits and lowercase letters, and then stores the password in the Password sample field:
Dim MyPassword
MyPassword = RandomPassword("[a-z0-9]", 10, 16)
SampleRec.Fields.Item("Password").Value = MyPassword
Earlier versions
In version 7 and later, the mrSM.QueueScriptingSite property is deprecated. Use the RandomPassword function instead of the mrSM.QueueScriptingSite RandomPassword property.
See also
Reference