[latex3-commits] [git/LaTeX3-latex3-latex3] master: Note that pTeX and upTeX now have random numbers [ci skip] (d6abb63)

Bruno Le Floch bruno at le-floch.fr
Fri Apr 27 16:49:20 CEST 2018


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

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

commit d6abb639872ce4b4d6d88cd46e8948ccfe204ed1
Author: Bruno Le Floch <bruno at le-floch.fr>
Date:   Fri Apr 27 09:26:23 2018 -0400

    Note that pTeX and upTeX now have random numbers [ci skip]


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

d6abb639872ce4b4d6d88cd46e8948ccfe204ed1
 l3kernel/l3candidates.dtx |   19 +++++++++----------
 l3kernel/l3fp-random.dtx  |    9 ++++-----
 l3kernel/l3fp.dtx         |    4 ++--
 l3kernel/l3int.dtx        |    2 +-
 4 files changed, 16 insertions(+), 18 deletions(-)

diff --git a/l3kernel/l3candidates.dtx b/l3kernel/l3candidates.dtx
index 3d4a18d..443c858 100644
--- a/l3kernel/l3candidates.dtx
+++ b/l3kernel/l3candidates.dtx
@@ -214,8 +214,8 @@
 %     \cs{clist_rand_item:n} \Arg{comma list}
 %   \end{syntax}
 %   Selects a pseudo-random item of the \meta{comma list}.  If the
-%   \meta{comma list} has no item, the result is empty.  This is only
-%   available in \pdfTeX{} and \LuaTeX{}.
+%   \meta{comma list} has no item, the result is empty.  This not
+%   yet available in \XeTeX{}.
 %   \begin{texnote}
 %     The result is returned within the \tn{unexpanded}
 %     primitive (\cs{exp_not:n}), which means that the \meta{item}
@@ -505,8 +505,7 @@
 %   \end{syntax}
 %   Selects a pseudo-random key--value pair from the \meta{property list}
 %   and returns \Arg{key} and \Arg{value}.  If the \meta{property list} is
-%   empty the result is empty.  This is only available in \pdfTeX{} and
-%   \LuaTeX{}.
+%   empty the result is empty.  This is not yet available in \XeTeX{}.
 %   \begin{texnote}
 %     The result is returned within the \tn{unexpanded}
 %     primitive (\cs{exp_not:n}), which means that the \meta{value}
@@ -603,8 +602,8 @@
 %     \cs{seq_rand_item:N} \meta{seq~var}
 %   \end{syntax}
 %   Selects a pseudo-random item of the \meta{sequence}.  If the
-%   \meta{sequence} is empty the result is empty.  This is only
-%   available in \pdfTeX{} and \LuaTeX{}.
+%   \meta{sequence} is empty the result is empty.  This is not yet
+%   available in \XeTeX{}.
 %   \begin{texnote}
 %     The result is returned within the \tn{unexpanded}
 %     primitive (\cs{exp_not:n}), which means that the \meta{item}
@@ -685,7 +684,7 @@
 %     \cs{sys_if_rand_exist:TF} \Arg{true code} \Arg{false code}
 %   \end{syntax}
 %   Tests if the engine has a pseudo-random number generator.  Currently
-%   this is the case in \pdfTeX{} and \LuaTeX{}.
+%   this is the case in \pdfTeX{}, \LuaTeX{}, \pTeX{} and \upTeX{}.
 % \end{function}
 %
 % \begin{function}[added = 2017-05-27, EXP]{\sys_rand_seed:}
@@ -1037,8 +1036,8 @@
 %     \cs{tl_rand_item:n} \Arg{token list}
 %   \end{syntax}
 %   Selects a pseudo-random item of the \meta{token list}.  If the
-%   \meta{token list} is blank, the result is empty.  This is only
-%   available in \pdfTeX{} and \LuaTeX{}.
+%   \meta{token list} is blank, the result is empty.  This is not yet
+%   available in \XeTeX{}.
 %   \begin{texnote}
 %     The result is returned within the \tn{unexpanded}
 %     primitive (\cs{exp_not:n}), which means that the \meta{item}
@@ -2448,7 +2447,7 @@
 %    \end{macrocode}
 %
 % \begin{macro}[EXP, pTF]{\sys_if_rand_exist:}
-%   Currently, randomness exists under \pdfTeX{} and \LuaTeX{}.
+%   Currently, randomness exists under \pdfTeX{}, \LuaTeX{}, \pTeX{} and \upTeX{}.
 %    \begin{macrocode}
 \cs_if_exist:NTF \pdftex_uniformdeviate:D
   {
diff --git a/l3kernel/l3fp-random.dtx b/l3kernel/l3fp-random.dtx
index 85914de..439eb85 100644
--- a/l3kernel/l3fp-random.dtx
+++ b/l3kernel/l3fp-random.dtx
@@ -71,10 +71,9 @@
 %
 % \subsection{Engine support}
 %
-% At present, \XeTeX{}, \pTeX{} and \upTeX{} do not provide random
-% numbers, while \LuaTeX{} and \pdfTeX{} provide the primitive
-% \cs{pdftex_uniformdeviate:D} (\tn{pdfuniformdeviate} in \pdfTeX{} and
-% \tn{uniformdeviate} in \LuaTeX{}).  We write the test twice simply in
+% At present, \XeTeX{} does not provide random
+% numbers, while \pdfTeX{}, \LuaTeX{}, \pTeX{} and \upTeX{} provide the primitive
+% \cs{pdftex_uniformdeviate:D}.  We write the test twice simply in
 % order to write the \texttt{false} branch first.
 %    \begin{macrocode}
 \cs_if_exist:NF \pdftex_uniformdeviate:D
@@ -400,7 +399,7 @@
 % \end{macro}
 %
 % End the initial conditional that ensures these commands are only
-% defined in \pdfTeX{} and \LuaTeX{}.
+% defined in engines that support random numbers.
 %    \begin{macrocode}
   }
 %    \end{macrocode}
diff --git a/l3kernel/l3fp.dtx b/l3kernel/l3fp.dtx
index a0a6e00..65ff4ce 100644
--- a/l3kernel/l3fp.dtx
+++ b/l3kernel/l3fp.dtx
@@ -1258,8 +1258,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.  Unavailable in
-%   the \XeTeX{} engine.
+%   $10^{-16}$) between $0$~included and $1$~excluded.  This is not yet
+%   available in \XeTeX{}.
 %   \begin{texnote}
 %     This is based on pseudo-random numbers provided by the engine's
 %     primitive \tn{pdfuniformdeviate} in \pdfTeX{} and
diff --git a/l3kernel/l3int.dtx b/l3kernel/l3int.dtx
index fcfaeef..5a5e37f 100644
--- a/l3kernel/l3int.dtx
+++ b/l3kernel/l3int.dtx
@@ -792,7 +792,7 @@
 %   \end{syntax}
 %   Evaluates the two \meta{integer expressions} and produces a
 %   pseudo-random number between the two (with bounds included).  This
-%   is only available in \pdfTeX{} and \LuaTeX{}.
+%   is not yet available in \XeTeX{}.
 % \end{function}
 %
 % \section{Viewing integers}





More information about the latex3-commits mailing list