COMMENT(!MOD!zsh/random Some High-quality randomness commands, parameters, and functions. !MOD!) The tt(zsh/random) module gets random data from the kernel random pool. If no kernel random pool can be found, the module will not load. subsect(Builtins) startitem() findex(getrandom) cindex(random data, printing, array) xitem(tt(getrandom) [ tt(-l) var(length) ] [ tt(-r) ] [ tt(-s) var(scalar) ] [tt(-i) ] [ tt(-a) var(array) ] [ tt(-U) var(upper_bound) ] [ tt(-L) var(lower_bound) ]) NL()Outputs a random hex-encoded string of var(length) bytes by default. NL() startitem() item(tt(-l) var(length)) ( Set the length of the returned random data. Defaults to 8. ) item(tt(-r)) ( Return the raw bytes rather than a hex-encoded string. ) item(tt(-s) var(scalar)) ( Save the random data in var(scalar) instead of printing it. Only useful in string mode or when var(length) is 1. ) item(tt(-a) var(array)) ( Save the random data as an array var(array) of var(length) containing a decimal representation of the integers LPAR()tt(-i), tt(-L), or tt(-U)RPAR() or individual bytes. ) item(tt(-i)) ( Produces var(length) 32-bit unsigned integers. ) item(tt(-U) var(upper_bound)) ( Output var(length) integers between var(lower_bound) and var(upper_bound). Defaults to 4,294,967,296. ) item(tt(-L) var(lower_bound)) ( Output var(length) integers between var(lower_bound) and var(upper_bound). Defaults to 0. ) enditem() enditem() subsect(Parameters) startitem() vindex(SRANDOM) item(tt(SRANDOM)) ( A random positive 32-bit integer between 0 and 4,294,967,295 ) enditem() subsect(Math Functions) startitem() item(tt(zrandom+LPAR()RPAR())) ( Returns a random floating point number between 0 and 1. ) enditem()