Scoped GlideSecureRandomUtil - getSecureRandomString(Number length)

Generates a random alpha-numeric String with the specified length.

Table 1. Parameters
Name Type Description
length Number The length of the string in number of characters.
Table 2. Returns
Type Description
String The randomly generated string.
gs.info(GlideSecureRandomUtil.getSecureRandomString(12));
Output:
1XzVI0sLfVlT