rand
)Random field generator
rand
can generate random numbers, strings and other data
types.
rand data-type [ max-value ]
Random integer (64-bit on 64-bit machines):
rand int
Random integer between 0 and 9:
rand int 9
Random floating point number between 0 and 1:
rand float
Random string, fixed to 5 characters long:
rand str 5
*
Alias for str (string)float
Random floating point number between 0 and 1.
max-value not supportedint
Random integer, max-value
specifies highest value for integernum
Alias for int in this builtinstr
Random string of printable ASCII characters.
max-value specifies the fixed length of the stringWARNING: is should be noted that while rand
can produce
random numbers and strings which might be useful for password
generation, neither the RNG nor the the random string generator (which
is ostensibly the same RNG but applied to an array of bytes within the
range of printable ASCII characters) are considered cryptographically
secure.
set
):
Define a variable (typically local) and set it’s valueformat
): Reformat one data-type into another
data-typelet
: Evaluate a
mathematical function and assign to variable (deprecated)This document was generated from builtins/core/random/rand_doc.yaml.
This site's content is rebuilt automatically from murex's source code after each merge to the master
branch. Downloadable murex binaries are also built with the website.
Last built on Wed Jul 2 22:12:32 UTC 2025 against commit bb72b6fbb72b6fdd502f835172d7d06207ba4ec2c70886c.
Current version is 7.0.2107 (develop) which has been verified against tests cases.