method int random (int max) Source #
Thread-safe cryptographically strong random number generator
param | max | Maximum value to return + 1 |
returns | A non-negative random number, less than the value specified. |
method string randomBase64 (int bytesCount) Source #
Thread-safe cryptographically strong random base-64 string generator
param | bytesCount | number of bytes generated that are then returned Base64 encoded |
returns | Base64 encoded random string |