[latex3-commits] [git/LaTeX3-latex3-latex3] master: Correct engine requirements for random numbers (b45da89)

Bruno Le Floch bruno at le-floch.fr
Sat Apr 14 16:26:49 CEST 2018


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/b45da895e0c399aaa124d3e91f54385c6b9ef85d

>---------------------------------------------------------------

commit b45da895e0c399aaa124d3e91f54385c6b9ef85d
Author: Bruno Le Floch <bruno at le-floch.fr>
Date:   Sat Apr 14 10:26:49 2018 -0400

    Correct engine requirements for random numbers


>---------------------------------------------------------------

b45da895e0c399aaa124d3e91f54385c6b9ef85d
 l3kernel/l3fp.dtx      |    6 +++---
 l3packages/xfp/xfp.dtx |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/l3kernel/l3fp.dtx b/l3kernel/l3fp.dtx
index 723cf29..fa36cd0 100644
--- a/l3kernel/l3fp.dtx
+++ b/l3kernel/l3fp.dtx
@@ -102,7 +102,7 @@
 %     towards $+\infty$ if $t>0$ and towards $-\infty$ if $t<0$.  And
 %     \emph{(not yet)} modulo, and \enquote{quantize}.
 %   \item Random numbers: $\mathop{rand}()$, $\mathop{randint}(m,n)$ in
-%     \pdfTeX{} and \LuaTeX{} engines.
+%     all engines except \XeTeX{}.
 %   \item Constants: \texttt{pi}, \texttt{deg} (one degree in radians).
 %   \item Dimensions, automatically expressed in points, \emph{e.g.},
 %     \texttt{pc} is~$12$.
@@ -1253,8 +1253,8 @@
 %     \cs{fp_eval:n} \{ |rand()| \}
 %   \end{syntax}
 %   Produces a pseudo-random floating-point number (multiple of
-%   $10^{-16}$) between $0$~included and $1$~excluded.  Available in
-%   \pdfTeX{} and \LuaTeX{} engines only.
+%   $10^{-16}$) between $0$~included and $1$~excluded.  Unavailable in
+%   the \XeTeX{} engine.
 %   \begin{texnote}
 %     This is based on pseudo-random numbers provided by the engine's
 %     primitive \tn{pdfuniformdeviate} in \pdfTeX{} and
diff --git a/l3packages/xfp/xfp.dtx b/l3packages/xfp/xfp.dtx
index dfa2303..94b2d3d 100644
--- a/l3packages/xfp/xfp.dtx
+++ b/l3packages/xfp/xfp.dtx
@@ -116,8 +116,8 @@
 %     $\operatorname{round}(x,n,t)$ rounds to the closest value, with
 %     ties rounded to an even value by default, towards zero if $t=0$,
 %     towards $+\infty$ if $t>0$ and towards $-\infty$ if $t<0$.
-%   \item Random numbers: $\mathop{rand}()$, $\mathop{randint}(m,n)$ (requires
-%     \pdfTeX{} or \LuaTeX{}).
+%   \item Random numbers: $\mathop{rand}()$, $\mathop{randint}(m,n)$
+%     (not available in \XeTeX{}).
 %   \item Constants: \texttt{pi}, \texttt{deg} (one degree in radians).
 %   \item Dimensions, automatically expressed in points, \emph{e.g.},
 %     \texttt{pc} is~$12$.





More information about the latex3-commits mailing list