murex Shell Docs

Command Reference: rand

Random field generator

Description

rand can generate random numbers, strings and other data types.

Usage

rand data-type [ max-value ]

Examples

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

Flags

Detail

Security

WARNING: 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.

See Also

This site is rebuilt weekly, the content is automatically generated from murex's source code. Last built on Mon Aug 3 06:12:53 UTC 2020 against commit 2557f7c2557f7cc7535c452c21d89164bd38ed8996f02fd. Downloadable murex binaries are also built weekly. Current version is 0.52.2000 BETA which has been verified against tests.