Scoped GlideSecureRandomUtil - getSecureRandomIntBound(Number bound)

Generates a pseudo-random integer between 0 (inclusive) and the bound (exclusive) value that you pass into the method.

Table 1. Parameters
Name Type Description
bound Number The bound value.
Table 2. Returns
Type Description
Number The pseudo-randomly generated integer.
gs.info(GlideSecureRandomUtil.getSecureRandomIntBound(100));
Output:
55