\(\text{TRNGU}\)¶
You can use the \(\text{TRNGU}\) function to obtain a cryptographically secure random number in a uniform distribution.
You can use the \trngu
backslash command to insert this function.
The following variants of this function are available:
\(\text{integer } \text{TRNGU} \left ( \text{<any value>} \right )\)
The \(\text{TRNGU}\) function requires an arbitrary parameter that will be ignored.
The function returns a cryptographically secure random real number over the range [0, 1].
The \(\text{TRNGU}\) function uses the operating system’s cryptographic source of entropy. Note that the OS cyptographic entropy sources may be slow due to the underlying algorithms and available entropy.
\[a = \text{TRNGU } 0 \;\;\;\;\; \text{a = 0.8583003159825183248}\]