[latex3-commits] [git/LaTeX3-latex3-latex3] master: Random numbers now available in XeTeX [ci skip] (see #515) (d57e74e)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Jan 7 09:20:07 CET 2019


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

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

commit d57e74e674ae6330f6668f24fc06d631fd07c20e
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Jan 7 08:20:07 2019 +0000

    Random numbers now available in XeTeX [ci skip] (see #515)


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

d57e74e674ae6330f6668f24fc06d631fd07c20e
 l3kernel/l3fp.dtx      |    9 ++++-----
 l3packages/xfp/xfp.dtx |    3 +--
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/l3kernel/l3fp.dtx b/l3kernel/l3fp.dtx
index b89b86c..38ae8db 100644
--- a/l3kernel/l3fp.dtx
+++ b/l3kernel/l3fp.dtx
@@ -101,8 +101,7 @@
 %     ties rounded to an even value by default, towards zero if $t=0$,
 %     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
-%     all engines except \XeTeX{}.
+%   \item Random numbers: $\mathop{rand}()$, $\mathop{randint}(m,n)$.
 %   \item Constants: \texttt{pi}, \texttt{deg} (one degree in radians).
 %   \item Dimensions, automatically expressed in points, \emph{e.g.},
 %     \texttt{pc} is~$12$.
@@ -1263,13 +1262,13 @@
 %     \cs{fp_eval:n} \{ |rand()| \}
 %   \end{syntax}
 %   Produces a pseudo-random floating-point number (multiple of
-%   $10^{-16}$) between $0$~included and $1$~excluded.  This is not yet
-%   available in \XeTeX{}.  The random seed can be queried using
+%   $10^{-16}$) between $0$~included and $1$~excluded.  This is available
+%   in older versions of \XeTeX{}.  The random seed can be queried using
 %   \cs{sys_rand_seed:} and set using \cs{sys_gset_rand_seed:n}.
 %   \begin{texnote}
 %     This is based on pseudo-random numbers provided by the engine's
 %     primitive \tn{pdfuniformdeviate} in \pdfTeX{}, \pTeX{}, \upTeX{}
-%     and \tn{uniformdeviate} in \LuaTeX{}.  The underlying code is
+%     and \tn{uniformdeviate} in \LuaTeX{} and \XeTeX{}.  The underlying code is
 %     based on Metapost, which follows an additive scheme recommended in
 %     Section 3.6 of \enquote{The Art of Computer Programming,
 %     Volume~2}.
diff --git a/l3packages/xfp/xfp.dtx b/l3packages/xfp/xfp.dtx
index ccb9f94..ceef62a 100644
--- a/l3packages/xfp/xfp.dtx
+++ b/l3packages/xfp/xfp.dtx
@@ -116,8 +116,7 @@
 %     $\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)$
-%     (not available in \XeTeX{}).
+%   \item Random numbers: $\mathop{rand}()$, $\mathop{randint}(m,n)$.
 %   \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