About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Last updated: Feb 11, 2025
The functions listed on this page can be used to randomly select items or randomly generate numbers.
Function | Result | Description |
---|---|---|
|
Any | Returns a randomly chosen element of LIST. List items should be entered as
. Note that a list of field names can also be specified.
|
|
Number | Returns a uniformly distributed random number of the same type (INT or REAL), starting from 1 to NUM. If you use an integer, then only integers are returned. If you use a real (decimal) number, then real numbers are returned (decimal precision determined by the stream options). The largest random number returned by the function could equal NUM. |
|
Number | This has the same properties as , but starting from 0. The
largest random number returned by the function will never equal NUM. |
Was the topic helpful?
0/1000