<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><span></span></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>Hi Bruno</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">Is it possible to add to the documentation somewhere anything we know about the underlying randomisation function used by these in each engine. E.g. Does it use something directly from the OS, or is it from some library or, eg, from lua, with version. </div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">Also important to point out that latex does no further processing to ensure uniformity or other properties, it only wraps the underlying 'primitive random functions' and transforms to the required interval/set.</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">Chris<br><br>Sent from my i-<span style="font-size: 13pt;">PadThai</span></div><div><br>On 21 Nov 2016, at 08:24, <a href="mailto:noreply@latex-project.org">noreply@latex-project.org</a> wrote:<br><br></div><blockquote type="cite"><div><span>Author: bruno</span><br><span>Date: 2016-11-21 02:24:26 +0100 (Mon, 21 Nov 2016)</span><br><span>New Revision: 6750</span><br><span></span><br><span>Added:</span><br><span> trunk/l3kernel/l3fp-random.dtx</span><br><span> trunk/l3kernel/testfiles/m3fp-rand001.lvt</span><br><span> trunk/l3kernel/testfiles/m3fp-rand001.ptex.tlg</span><br><span> trunk/l3kernel/testfiles/m3fp-rand001.tlg</span><br><span> trunk/l3kernel/testfiles/m3fp-rand001.uptex.tlg</span><br><span> trunk/l3kernel/testfiles/m3fp-rand001.xetex.tlg</span><br><span>Modified:</span><br><span> trunk/l3kernel/l3.ins</span><br><span> trunk/l3kernel/l3format.ins</span><br><span> trunk/l3kernel/l3fp-aux.dtx</span><br><span> trunk/l3kernel/l3fp-parse.dtx</span><br><span> trunk/l3kernel/l3fp-round.dtx</span><br><span> trunk/l3kernel/l3fp.dtx</span><br><span> trunk/l3kernel/source3body.tex</span><br><span> trunk/l3kernel/testfiles/m3expl001.luatex.tlg</span><br><span> trunk/l3kernel/testfiles/m3expl001.ptex.tlg</span><br><span> trunk/l3kernel/testfiles/m3expl001.tlg</span><br><span> trunk/l3kernel/testfiles/m3expl001.uptex.tlg</span><br><span> trunk/l3kernel/testfiles/m3expl001.xetex.tlg</span><br><span> trunk/l3kernel/testfiles/m3expl003.luatex.tlg</span><br><span> trunk/l3kernel/testfiles/m3expl003.ptex.tlg</span><br><span> trunk/l3kernel/testfiles/m3expl003.tlg</span><br><span> trunk/l3kernel/testfiles/m3expl003.uptex.tlg</span><br><span> trunk/l3kernel/testfiles/m3expl003.xetex.tlg</span><br><span> trunk/l3kernel/testfiles/m3fp-parse002.lvt</span><br><span> trunk/l3kernel/testfiles/m3fp-parse002.tlg</span><br><span> trunk/l3kernel/testfiles/m3fp-round002.tlg</span><br><span>Log:</span><br><span>Add random numbers to l3fp, allow 0-argument functions</span><br><span></span><br><span>This commits adds rand() producing floating points in [0,1)</span><br><span>and randint(a,b) producing integers in [a,b] where a and b</span><br><span>must be integers less than 10^16 in magnitude (in principle</span><br><span>we could have allowed +10^16 and -10^16 too but it was easier</span><br><span>to code that way), and a can be omitted, defaulting to 1.</span><br><span></span><br><span>I reworked parsing a bit to allow the 0-argument rand() so</span><br><span>empty arguments (for instance due to extra commas) are now</span><br><span>ignored completely. Thus max(,,,a,b,,,,) is equivalent to</span><br><span>max(a,b). Drawback: round(a,,1) is equivalent to round(a,1),</span><br><span>where a user might have expected it to be equivalent to</span><br><span>round(a,0,1) namely "round to integer with ties rounded</span><br><span>toward +inf".</span><br><span></span><br><span></span><br><span></span><br><span>Modified: trunk/l3kernel/l3.ins</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/l3.ins 2016-11-19 00:43:44 UTC (rev 6749)</span><br><span>+++ trunk/l3kernel/l3.ins 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -71,6 +71,7 @@</span><br><span> \from{l3fp-expo.dtx} {package}</span><br><span> \from{l3fp-trig.dtx} {package}</span><br><span> \from{l3fp-convert.dtx} {package}</span><br><span>+ \from{l3fp-random.dtx} {package}</span><br><span> \from{l3fp-assign.dtx} {package}</span><br><span> \from{l3box.dtx} {package}</span><br><span> \from{l3coffins.dtx} {package}</span><br><span></span><br><span>Modified: trunk/l3kernel/l3format.ins</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/l3format.ins 2016-11-19 00:43:44 UTC (rev 6749)</span><br><span>+++ trunk/l3kernel/l3format.ins 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -71,6 +71,7 @@</span><br><span> \from{l3fp-expo.dtx} {initex}</span><br><span> \from{l3fp-trig.dtx} {initex}</span><br><span> \from{l3fp-convert.dtx} {initex}</span><br><span>+ \from{l3fp-random.dtx} {initex}</span><br><span> \from{l3fp-assign.dtx} {initex}</span><br><span> \from{l3box.dtx} {initex}</span><br><span> \from{l3coffins.dtx} {initex}</span><br><span></span><br><span>Modified: trunk/l3kernel/l3fp-aux.dtx</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/l3fp-aux.dtx 2016-11-19 00:43:44 UTC (rev 6749)</span><br><span>+++ trunk/l3kernel/l3fp-aux.dtx 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -939,6 +939,43 @@</span><br><span> % \end{macrocode}</span><br><span> % \end{macro}</span><br><span> %</span><br><span>+% \subsection{Integer floating points}</span><br><span>+%</span><br><span>+% \begin{macro}[int, EXP, pTF]{\@@_int:w}</span><br><span>+% \begin{macro}[aux, EXP]{\@@_int_normal:nnnnn, \@@_int_test:Nw}</span><br><span>+% Tests if the floating point argument is an integer. This holds if</span><br><span>+% the rounding digit resulting from \cs{@@_decimate:nNnnnn} is~$0$.</span><br><span>+% \begin{macrocode}</span><br><span>+\prg_new_conditional:Npnn \@@_int:w \s_@@ \@@_chk:w #1 #2 #3; { TF , T , F , p }</span><br><span>+ {</span><br><span>+ \if_case:w #1 \exp_stop_f:</span><br><span>+ \prg_return_true:</span><br><span>+ \or: \@@_int_normal:nnnnn #3</span><br><span>+ \else: \prg_return_false:</span><br><span>+ \fi:</span><br><span>+ }</span><br><span>+\cs_new:Npn \@@_int_normal:nnnnn #1 #2#3#4#5</span><br><span>+ {</span><br><span>+ \if_int_compare:w #1 > \c_zero</span><br><span>+ \@@_decimate:nNnnnn { \c_sixteen - #1 }</span><br><span>+ \@@_int_test:Nw</span><br><span>+ {#2} {#3} {#4} {#5}</span><br><span>+ \else:</span><br><span>+ \prg_return_false:</span><br><span>+ \fi:</span><br><span>+ }</span><br><span>+\cs_new:Npn \@@_int_test:Nw #1#2;</span><br><span>+ {</span><br><span>+ \if_meaning:w 0 #1</span><br><span>+ \prg_return_true:</span><br><span>+ \else:</span><br><span>+ \prg_return_false:</span><br><span>+ \fi:</span><br><span>+ }</span><br><span>+% \end{macrocode}</span><br><span>+% \end{macro}</span><br><span>+% \end{macro}</span><br><span>+%</span><br><span> % \subsection{Small integer floating points}</span><br><span> %</span><br><span> % \begin{macro}[int, EXP]{\@@_small_int:wTF}</span><br><span></span><br><span>Modified: trunk/l3kernel/l3fp-parse.dtx</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/l3fp-parse.dtx 2016-11-19 00:43:44 UTC (rev 6749)</span><br><span>+++ trunk/l3kernel/l3fp-parse.dtx 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -91,6 +91,8 @@</span><br><span> % in the input stream as an internal floating point number. This</span><br><span> % function forms the basis of almost all public \pkg{l3fp} functions.</span><br><span> % During evaluation, each token is fully \texttt{f}-expanded.</span><br><span>+%</span><br><span>+% \cs{@@_parse_o:n} does the same but expands once after its result.</span><br><span> % \begin{texnote}</span><br><span> % Registers (integers, toks, etc.) are automatically unpacked,</span><br><span> % without requiring a function such as \cs{int_use:N}. Invalid</span><br><span>@@ -821,7 +823,7 @@</span><br><span> % integer registers from dimensions/skips from muskips, according to</span><br><span> % the presence of a period and/or of |pt|. For integers, simply</span><br><span> % convert \meta{value}|e|\meta{exponent} to a floating point number</span><br><span>-% with \cs{fp_parse:n} (this is somewhat wasteful). For other</span><br><span>+% with \cs{@@_parse:n} (this is somewhat wasteful). For other</span><br><span> % registers, the decimal rounding provided by \TeX{} does not</span><br><span> % accurately represent the binary value that it manipulates, so we</span><br><span> % extract this binary value as a number of scaled points with</span><br><span>@@ -1783,8 +1785,8 @@</span><br><span> % {\@@_parse_prefix_(:Nw, \@@_parse_lparen_after:NwN}</span><br><span> % The left parenthesis is treated as a unary prefix operator because</span><br><span> % it appears in exactly the same settings. Commas will be allowed if</span><br><span>-% the previous precedence is $16$ (function with multiple arguments)</span><br><span>-% or $13$ (unary boolean \enquote{not}). In this case, find an</span><br><span>+% the previous precedence is $16$ (function with multiple arguments).</span><br><span>+% In this case, find an</span><br><span> % operand using the precedence~$1$; otherwise the precedence~$0$.</span><br><span> % Once the operand is found, the \texttt{lparen_after} auxiliary makes</span><br><span> % sure that there was a closing parenthesis (otherwise it complains),</span><br><span>@@ -1825,6 +1827,42 @@</span><br><span> % \end{macrocode}</span><br><span> % \end{macro}</span><br><span> %</span><br><span>+% \begin{macro}[aux, EXP, verb]{\@@_parse_prefix_,:Nw}</span><br><span>+% \begin{macro}[aux, EXP]{\@@_parse_prefix_):Nw}</span><br><span>+% The right parenthesis and the comma can appear as unary prefixes</span><br><span>+% when an argument of a multi-argument function is missing (for</span><br><span>+% instance the first and last ones in |max(,1,2,)| or in |rand()|).</span><br><span>+% In single-argument functions (precedence~$0$ rather than~$1$) forbid</span><br><span>+% this.</span><br><span>+% \begin{macrocode}</span><br><span>+\cs_new:cpn { @@_parse_prefix_,:Nw } #1</span><br><span>+ {</span><br><span>+ \if_int_compare:w #1 = \c_one</span><br><span>+ \exp_after:wN \@@_parse_one:Nw</span><br><span>+ \exp_after:wN #1</span><br><span>+ \else:</span><br><span>+ \__msg_kernel_expandable_error:nnn</span><br><span>+ { kernel } { fp-missing-number } { , }</span><br><span>+ \exp_after:wN \c_nan_fp \exp:w \exp_end_continue_f:w</span><br><span>+ \exp_after:wN \@@_parse_infix:NN</span><br><span>+ \exp_after:wN #1</span><br><span>+ \exp_after:wN ,</span><br><span>+ \fi:</span><br><span>+ }</span><br><span>+\cs_new:cpn { @@_parse_prefix_):Nw } #1</span><br><span>+ {</span><br><span>+ \if_int_compare:w #1 = \c_one</span><br><span>+ \else:</span><br><span>+ \__msg_kernel_expandable_error:nnn</span><br><span>+ { kernel } { fp-missing-number } { ) }</span><br><span>+ \exp_after:wN \c_nan_fp \exp:w \exp_end_continue_f:w</span><br><span>+ \fi:</span><br><span>+ \@@_parse_infix:NN #1 )</span><br><span>+ }</span><br><span>+% \end{macrocode}</span><br><span>+% \end{macro}</span><br><span>+% \end{macro}</span><br><span>+%</span><br><span> % \subsubsection{Constants}</span><br><span> %</span><br><span> % \begin{macro}[aux, EXP]</span><br><span>@@ -1939,9 +1977,11 @@</span><br><span> % \@@_parse_word_acot:N , \@@_parse_word_acotd:N,</span><br><span> % \@@_parse_word_atan:N , \@@_parse_word_atand:N,</span><br><span> % \@@_parse_word_max:N , \@@_parse_word_min:N ,</span><br><span>+% \@@_parse_word_rand:N , \@@_parse_word_randint:N,</span><br><span> % }</span><br><span> % Those functions are also unary (not binary), but may receive a</span><br><span> % variable number of arguments.</span><br><span>+% For |randint| we don't use the first argument~|?|.</span><br><span> % \begin{macrocode}</span><br><span> \cs_new:Npn \@@_parse_word_acot:N</span><br><span> { \@@_parse_function:NNN \@@_acot_o:Nw \use_i:nn }</span><br><span>@@ -1955,6 +1995,10 @@</span><br><span> { \@@_parse_function:NNN \@@_minmax_o:Nw 2 }</span><br><span> \cs_new:Npn \@@_parse_word_min:N</span><br><span> { \@@_parse_function:NNN \@@_minmax_o:Nw 0 }</span><br><span>+\cs_new:Npn \@@_parse_word_rand:N</span><br><span>+ { \@@_parse_function:NNN \@@_rand_o:Nw ? }</span><br><span>+\cs_new:Npn \@@_parse_word_randint:N</span><br><span>+ { \@@_parse_function:NNN \@@_randint_o:Nw ? }</span><br><span> % \end{macrocode}</span><br><span> % \end{macro}</span><br><span> %</span><br><span>@@ -2088,6 +2132,18 @@</span><br><span> % \end{macro}</span><br><span> % \end{macro}</span><br><span> %</span><br><span>+% \begin{macro}[int, EXP]{\@@_parse_o:n}</span><br><span>+% ^^A todo: optimize, comment, make it work for arrays.</span><br><span>+% \begin{macrocode}</span><br><span>+\cs_new:Npn \@@_parse_o:n #1</span><br><span>+ {</span><br><span>+ \exp_after:wN \exp_after:wN</span><br><span>+ \exp_after:wN \@@_exp_after_o:w</span><br><span>+ \@@_parse:n {#1}</span><br><span>+ }</span><br><span>+% \end{macrocode}</span><br><span>+% \end{macro}</span><br><span>+%</span><br><span> % \begin{macro}[aux, EXP]{\@@_parse_operand:Nw}</span><br><span> % \begin{macro}[aux, EXP]{\@@_parse_continue:NwN}</span><br><span> % The \cs{@@_parse_operand}</span><br><span></span><br><span>Added: trunk/l3kernel/l3fp-random.dtx</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/l3fp-random.dtx (rev 0)</span><br><span>+++ trunk/l3kernel/l3fp-random.dtx 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -0,0 +1,266 @@</span><br><span>+% \iffalse meta-comment</span><br><span>+%</span><br><span>+%% File: l3fp-random.dtx Copyright (C) 2016 The LaTeX3 Project</span><br><span>+%%</span><br><span>+%% It may be distributed and/or modified under the conditions of the</span><br><span>+%% LaTeX Project Public License (LPPL), either version 1.3c of this</span><br><span>+%% license or (at your option) any later version. The latest version</span><br><span>+%% of this license is in the file</span><br><span>+%%</span><br><span>+%% <a href="http://www.latex-project.org/lppl.txt">http://www.latex-project.org/lppl.txt</a></span><br><span>+%%</span><br><span>+%% This file is part of the "l3kernel bundle" (The Work in LPPL)</span><br><span>+%% and all files in that bundle must be distributed together.</span><br><span>+%%</span><br><span>+%% The released version of this bundle is available from CTAN.</span><br><span>+%%</span><br><span>+%% -----------------------------------------------------------------------</span><br><span>+%%</span><br><span>+%% The development version of the bundle can be found at</span><br><span>+%%</span><br><span>+%% <a href="http://www.latex-project.org/svnroot/experimental/trunk/">http://www.latex-project.org/svnroot/experimental/trunk/</a></span><br><span>+%%</span><br><span>+%% for those people who are interested.</span><br><span>+%%</span><br><span>+%%%%%%%%%%%</span><br><span>+%% NOTE: %%</span><br><span>+%%%%%%%%%%%</span><br><span>+%%</span><br><span>+%% Snapshots taken from the repository represent work in progress and may</span><br><span>+%% not work or may contain conflicting material! We therefore ask</span><br><span>+%% people _not_ to put them into distributions, archives, etc. without</span><br><span>+%% prior consultation with the LaTeX Project Team.</span><br><span>+%%</span><br><span>+%% -----------------------------------------------------------------------</span><br><span>+%%</span><br><span>+%</span><br><span>+%<*driver></span><br><span>+\documentclass[full]{l3doc}</span><br><span>+\GetIdInfo$Id$</span><br><span>+ {L3 Floating-point random numbers}</span><br><span>+\begin{document}</span><br><span>+ \DocInput{\jobname.dtx}</span><br><span>+\end{document}</span><br><span>+%</driver></span><br><span>+% \fi</span><br><span>+%</span><br><span>+% \title{The \textsf{l3fp-random} package\thanks{This file</span><br><span>+% has version number \ExplFileVersion, last</span><br><span>+% revised \ExplFileDate.}\\</span><br><span>+% Floating point random numbers}</span><br><span>+% \author{^^A</span><br><span>+% The \LaTeX3 Project\thanks</span><br><span>+% {^^A</span><br><span>+% E-mail:</span><br><span>+% \href{<a href="mailto:latex-team@latex-project.org">mailto:latex-team@latex-project.org</a>}</span><br><span>+% {<a href="mailto:latex-team@latex-project.org">latex-team@latex-project.org</a>}^^A</span><br><span>+% }^^A</span><br><span>+% }</span><br><span>+% \date{Released \ExplFileDate}</span><br><span>+%</span><br><span>+% \maketitle</span><br><span>+%</span><br><span>+% \begin{documentation}</span><br><span>+%</span><br><span>+% \end{documentation}</span><br><span>+%</span><br><span>+% \begin{implementation}</span><br><span>+%</span><br><span>+% \section{\pkg{l3fp-random} Implementation}</span><br><span>+%</span><br><span>+% \begin{macrocode}</span><br><span>+%<*initex|package></span><br><span>+% \end{macrocode}</span><br><span>+%</span><br><span>+% \begin{macrocode}</span><br><span>+%<@@=fp></span><br><span>+% \end{macrocode}</span><br><span>+%</span><br><span>+% \subsection{Random floating point}</span><br><span>+%</span><br><span>+% \begin{macro}[EXP, int]{\@@_rand_o:Nw}</span><br><span>+% \begin{macro}[EXP, aux]{\@@_rand_o:}</span><br><span>+% Check that |random| was called without argument. Random numbers are</span><br><span>+% only available if the engine defines a primitive equivalent to</span><br><span>+% \pdfTeX{}'s \tn{pdfuniformdeviate}. A random floating point number</span><br><span>+% in $[0,1)$, uniformly distributed with equal-spaced steps of</span><br><span>+% $10^{-16}$ is obtained by combining two integers in $[0,10^8-1]$.</span><br><span>+% \begin{macrocode}</span><br><span>+\cs_new:Npn \@@_rand_o:Nw ? #1 @</span><br><span>+ {</span><br><span>+ \tl_if_empty:nTF {#1}</span><br><span>+ { \@@_rand_o: }</span><br><span>+ {</span><br><span>+ \__msg_kernel_expandable_error:nnnnn</span><br><span>+ { kernel } { fp-num-args } { rand() } { 0 } { 0 }</span><br><span>+ \exp_after:wN \c_nan_fp</span><br><span>+ }</span><br><span>+ }</span><br><span>+\cs_if_exist:NTF \pdftex_uniformdeviate:D</span><br><span>+ {</span><br><span>+ \cs_new:Npn \@@_rand_o:</span><br><span>+ {</span><br><span>+ \@@_parse_o:n</span><br><span>+ {</span><br><span>+ .</span><br><span>+ \exp_after:wN \use_none:n</span><br><span>+ \__int_value:w \__int_eval:w 1 0000 0000 +</span><br><span>+ \pdftex_uniformdeviate:D 1 0000 0000 \__int_eval_end:</span><br><span>+ \exp_after:wN \use_none:n</span><br><span>+ \__int_value:w \__int_eval:w 1 0000 0000 +</span><br><span>+ \pdftex_uniformdeviate:D 1 0000 0000 \__int_eval_end:</span><br><span>+ }</span><br><span>+ }</span><br><span>+ }</span><br><span>+ {</span><br><span>+ \cs_new:Npn \@@_rand_o:</span><br><span>+ {</span><br><span>+ \__msg_kernel_expandable_error:nn { kernel } { fp-no-random }</span><br><span>+ \exp_after:wN \c_nan_fp</span><br><span>+ }</span><br><span>+ }</span><br><span>+% \end{macrocode}</span><br><span>+% \end{macro}</span><br><span>+% \end{macro}</span><br><span>+%</span><br><span>+% \subsection{Random integer}</span><br><span>+%</span><br><span>+% \begin{macro}[EXP, int]{\@@_randint_o:Nw}</span><br><span>+% \begin{macro}[EXP, aux]</span><br><span>+% {</span><br><span>+% \@@_randint_badarg:w,</span><br><span>+% \@@_randint_e:w,</span><br><span>+% \@@_randint_narrow_e:nn,</span><br><span>+% \@@_randint_wide_e:nn,</span><br><span>+% \@@_randint_wide_e:nnn,</span><br><span>+% \@@_randint_wide_e:nnnn,</span><br><span>+% }</span><br><span>+% Enforce that there is one argument (then add first argument~$1$)</span><br><span>+% or two arguments. Enforce that they are integers in</span><br><span>+% $(-10^{16},10^{16})$ and ordered.</span><br><span>+%</span><br><span>+% When the range is narrow (less than $2\times 10^9$) we can</span><br><span>+% directly use the primitive. Otherwise we use the primitive twice.</span><br><span>+% To ensure a uniform distribution we combine two uniformly</span><br><span>+% distributed integers into a total range greater or equal to our</span><br><span>+% target range and try again if the random number ended up being too</span><br><span>+% big.</span><br><span>+%</span><br><span>+% The strange |+\c_six| ensures that the first argument of</span><br><span>+% \cs{@@_randint_wide_e:nnn} is larger than $10^{-8}$ times the</span><br><span>+% difference between the end-points even if these are near</span><br><span>+% $-10^{16}$ and $+10^{16}$ (their difference is rounded to sixteen</span><br><span>+% digits). Note that we cannot just concatenate the two random</span><br><span>+% numbers provided by the engine as that may give an integer up to</span><br><span>+% (almost) $2\times 10^{16}$ which incurs rounding.</span><br><span>+% \begin{macrocode}</span><br><span>+\cs_new:Npn \@@_randint_o:Nw ? #1 @</span><br><span>+ {</span><br><span>+ \if_case:w</span><br><span>+ \__int_eval:w \@@_array_count:n {#1} - \c_one \__int_eval_end:</span><br><span>+ \exp_after:wN \@@_randint_e:w \c_one_fp #1</span><br><span>+ \or: \@@_randint_e:w #1</span><br><span>+ \else:</span><br><span>+ \__msg_kernel_expandable_error:nnnnn</span><br><span>+ { kernel } { fp-num-args } { randint() } { 1 } { 2 }</span><br><span>+ \exp_after:wN \c_nan_fp \exp:w</span><br><span>+ \fi:</span><br><span>+ \exp_after:wN \exp_end:</span><br><span>+ }</span><br><span>+\cs_new:Npn \@@_randint_badarg:w \s_@@ \@@_chk:w #1#2#3;</span><br><span>+ {</span><br><span>+ \@@_int:wTF \s_@@ \@@_chk:w #1#2#3;</span><br><span>+ {</span><br><span>+ \if_meaning:w 1 #1</span><br><span>+ \if_int_compare:w</span><br><span>+ \use_i_delimit_by_q_stop:nw #3 \q_stop > \c_sixteen</span><br><span>+ \exp_after:wN \c_one</span><br><span>+ \fi:</span><br><span>+ \fi:</span><br><span>+ }</span><br><span>+ { \c_one }</span><br><span>+ }</span><br><span>+\cs_new:Npn \@@_randint_e:w #1; #2;</span><br><span>+ {</span><br><span>+ \if_case:w</span><br><span>+ \@@_randint_badarg:w #1;</span><br><span>+ \@@_randint_badarg:w #2;</span><br><span>+ \fp_compare:nNnTF { #1; } > { #2; } { \c_one } { \c_zero }</span><br><span>+ \fp_compare:nNnTF { #1; + 2e9 } < { #2; }</span><br><span>+ { \@@_randint_wide_e:nn }</span><br><span>+ { \@@_randint_narrow_e:nn }</span><br><span>+ { #1; } { #2; }</span><br><span>+ \or:</span><br><span>+ \@@_invalid_operation_tl_o:ff</span><br><span>+ { randint } { \@@_array_to_clist:n { #1; #2; } }</span><br><span>+ \exp:w</span><br><span>+ \fi:</span><br><span>+ }</span><br><span>+\cs_if_exist:NTF \pdftex_uniformdeviate:D</span><br><span>+ {</span><br><span>+ \cs_new:Npn \@@_randint_narrow_e:nn #1#2</span><br><span>+ {</span><br><span>+ \@@_parse_o:n</span><br><span>+ {</span><br><span>+ #1 +</span><br><span>+ \pdftex_uniformdeviate:D</span><br><span>+ \int_eval:n { \fp_to_int:n { #2 - #1 } + \c_one }</span><br><span>+ }</span><br><span>+ \exp:w</span><br><span>+ }</span><br><span>+ \cs_new:Npn \@@_randint_wide_e:nn #1 #2</span><br><span>+ {</span><br><span>+ \exp_args:Nf \@@_randint_wide_e:nnn</span><br><span>+ { \fp_to_int:n { ceil ( ( #2 - #1 + \c_six ) * 1e-8 ) } }</span><br><span>+ {#1} {#2}</span><br><span>+ }</span><br><span>+ \cs_new:Npn \@@_randint_wide_e:nnn #1#2#3</span><br><span>+ {</span><br><span>+ \exp_args:Nf \@@_randint_wide_e:nnnn</span><br><span>+ {</span><br><span>+ \@@_parse:n</span><br><span>+ {</span><br><span>+ #2 +</span><br><span>+ \pdftex_uniformdeviate:D #1 e 8 +</span><br><span>+ \pdftex_uniformdeviate:D 1 0000 0000</span><br><span>+ }</span><br><span>+ }</span><br><span>+ {#1} {#2} {#3}</span><br><span>+ }</span><br><span>+ \cs_new:Npn \@@_randint_wide_e:nnnn #1#2#3#4</span><br><span>+ {</span><br><span>+ \fp_compare:nNnTF {#1} > {#4}</span><br><span>+ { \@@_randint_wide_e:nnn {#2} {#3} {#4} }</span><br><span>+ { \@@_exp_after_o:w #1 \exp:w }</span><br><span>+ }</span><br><span>+ }</span><br><span>+ {</span><br><span>+ \cs_new:Npn \@@_randint_narrow_e:nn #1#2</span><br><span>+ {</span><br><span>+ \__msg_kernel_expandable_error:nn { kernel } { fp-no-random }</span><br><span>+ \exp_after:wN \c_nan_fp \exp:w</span><br><span>+ }</span><br><span>+ \cs_new:Npn \@@_randint_wide_e:nn #1#2</span><br><span>+ {</span><br><span>+ \__msg_kernel_expandable_error:nn { kernel } { fp-no-random }</span><br><span>+ \exp_after:wN \c_nan_fp \exp:w</span><br><span>+ }</span><br><span>+ }</span><br><span>+% \end{macrocode}</span><br><span>+% \end{macro}</span><br><span>+% \end{macro}</span><br><span>+%</span><br><span>+% \begin{macrocode}</span><br><span>+\__msg_kernel_new:nnn { kernel } { fp-no-random }</span><br><span>+ { Random~numbers~unavailable }</span><br><span>+% \end{macrocode}</span><br><span>+%</span><br><span>+% \begin{macrocode}</span><br><span>+%</initex|package></span><br><span>+% \end{macrocode}</span><br><span>+%</span><br><span>+% \end{implementation}</span><br><span>+%</span><br><span>+% \PrintChanges</span><br><span>+%</span><br><span>+% \PrintIndex</span><br><span></span><br><span></span><br><span>Property changes on: trunk/l3kernel/l3fp-random.dtx</span><br><span>___________________________________________________________________</span><br><span>Added: svn:eol-style</span><br><span> + native</span><br><span>Added: svn:keywords</span><br><span> + Id</span><br><span></span><br><span>Modified: trunk/l3kernel/l3fp-round.dtx</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/l3fp-round.dtx 2016-11-19 00:43:44 UTC (rev 6749)</span><br><span>+++ trunk/l3kernel/l3fp-round.dtx 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -350,6 +350,7 @@</span><br><span> %</span><br><span> % ^^A todo: This macro is intermingled with l3fp-parse.</span><br><span> % ^^A todo: Add explanations.</span><br><span>+% ^^A todo: This macro f-expands rather than o-expands after itself, is that an issue?</span><br><span> % \begin{macro}[aux,EXP]{\@@_round_o:Nw}</span><br><span> % The |trunc|, |ceil| and |floor| functions expect one or two</span><br><span> % arguments (the second is $0$ by default), and the |round| function</span><br><span>@@ -360,8 +361,9 @@</span><br><span> \cs_new:Npn \@@_round_o:Nw #1#2 @</span><br><span> {</span><br><span> \if_case:w</span><br><span>- \__int_eval:w \@@_array_count:n {#2} - \c_one \__int_eval_end:</span><br><span>- \@@_round:Nwn #1 #2 {0} \exp:w</span><br><span>+ \__int_eval:w \@@_array_count:n {#2} \__int_eval_end:</span><br><span>+ \@@_round_no_arg_o:Nw #1 \exp:w</span><br><span>+ \or: \@@_round:Nwn #1 #2 {0} \exp:w</span><br><span> \or: \@@_round:Nww #1 #2 \exp:w</span><br><span> \else: \@@_round:Nwww #1 #2 @ \exp:w</span><br><span> \fi:</span><br><span>@@ -370,6 +372,21 @@</span><br><span> % \end{macrocode}</span><br><span> % \end{macro}</span><br><span> %</span><br><span>+% \begin{macro}[aux, EXP]{\@@_round_no_arg_o:Nw}</span><br><span>+% \begin{macrocode}</span><br><span>+\cs_new:Npn \@@_round_no_arg_o:Nw #1</span><br><span>+ {</span><br><span>+ \cs_if_eq:NNTF #1 \@@_round_to_nearest:NNN</span><br><span>+ { \@@_error:nnnn { num-args } { round () } { 1 } { 3 } }</span><br><span>+ {</span><br><span>+ \@@_error:nffn { num-args }</span><br><span>+ { \@@_round_name_from_cs:N #1 () } { 1 } { 2 }</span><br><span>+ }</span><br><span>+ \exp_after:wN \c_nan_fp</span><br><span>+ }</span><br><span>+% \end{macrocode}</span><br><span>+% \end{macro}</span><br><span>+%</span><br><span> % \begin{macro}[aux, EXP]{\@@_round:Nwww}</span><br><span> % Having three arguments is only allowed for |round|, not |trunc|,</span><br><span> % |ceil|, |floor|, so check for that case. If all is well, construct</span><br><span></span><br><span>Modified: trunk/l3kernel/l3fp.dtx</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/l3fp.dtx 2016-11-19 00:43:44 UTC (rev 6749)</span><br><span>+++ trunk/l3kernel/l3fp.dtx 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -91,6 +91,7 @@</span><br><span> % \item Boolean logic: negation $\mathop{!}x$, conjunction</span><br><span> % $x\mathop{\&\&}y$, disjunction $x\mathop{\vert\vert}y$, ternary</span><br><span> % operator $x\mathop{?}y\mathop{:}z$.</span><br><span>+% \item Random numbers: $\mathop{rand}()$, $\mathop{randint}(m,n)$.</span><br><span> % \item Exponentials: $\exp x$, $\ln x$, $x^y$.</span><br><span> % \item Trigonometry: $\sin x$, $\cos x$, $\tan x$, $\cot x$, $\sec</span><br><span> % x$, $\csc x$ expecting their arguments in radians, and</span><br><span>@@ -1135,6 +1136,35 @@</span><br><span> % $\sqrt{\text{\nan{}}}=\text{\nan{}}$.</span><br><span> % \end{function}</span><br><span> %</span><br><span>+% \begin{function}[added = 2016-11-20]{rand}</span><br><span>+% \begin{syntax}</span><br><span>+% \cs{fp_eval:n} \{ |rand()| \}</span><br><span>+% \end{syntax}</span><br><span>+% Produces a pseudo-random floating-point number (multiple of</span><br><span>+% $10^{-16}$) between $0$~included and $1$~excluded.</span><br><span>+% \begin{texnote}</span><br><span>+% This is a wrapper around \tn{pdfuniformdeviate}. The random seed</span><br><span>+% can be queried using \tn{pdfrandomseed} and set using</span><br><span>+% \tn{pdfsetrandomseed}.</span><br><span>+% \end{texnote}</span><br><span>+% \end{function}</span><br><span>+%</span><br><span>+% \begin{function}[added = 2016-11-20]{randint}</span><br><span>+% \begin{syntax}</span><br><span>+% \cs{fp_eval:n} \{ |randint(| \meta{fpexpr} |)| \}</span><br><span>+% \cs{fp_eval:n} \{ |randint(| \meta{fpexpr_1} , \meta{fpexpr_2} |)| \}</span><br><span>+% \end{syntax}</span><br><span>+% Produces a pseudo-random integer between $1$~and \meta{fpexpr} or</span><br><span>+% between \meta{fpexpr_1} and \meta{fpexpr_2} inclusive. The bounds</span><br><span>+% must be integers in the range $(-10^{16},10^{16})$ and the first</span><br><span>+% must be smaller or equal to the second.</span><br><span>+% \begin{texnote}</span><br><span>+% This is a wrapper around \tn{pdfuniformdeviate}. The random seed</span><br><span>+% can be queried using \tn{pdfrandomseed} and set using</span><br><span>+% \tn{pdfsetrandomseed}.</span><br><span>+% \end{texnote}</span><br><span>+% \end{function}</span><br><span>+%</span><br><span> % \begin{variable}[tested = m3fp-parse001]{inf, nan}</span><br><span> % The special values $+\infty$, $-\infty$, and \nan{} are represented</span><br><span> % as \texttt{inf}, \texttt{-inf} and \texttt{nan} (see \cs{c_inf_fp},</span><br><span></span><br><span>Modified: trunk/l3kernel/source3body.tex</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/source3body.tex 2016-11-19 00:43:44 UTC (rev 6749)</span><br><span>+++ trunk/l3kernel/source3body.tex 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -448,6 +448,7 @@</span><br><span> l3fp-expo.dtx ,</span><br><span> l3fp-trig.dtx ,</span><br><span> l3fp-convert.dtx ,</span><br><span>+ l3fp-random.dtx ,</span><br><span> l3fp-assign.dtx ,</span><br><span> }</span><br><span> \ExplSyntaxOff</span><br><span></span><br><span>Modified: trunk/l3kernel/testfiles/m3expl001.luatex.tlg</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/testfiles/m3expl001.luatex.tlg 2016-11-19 00:43:44 UTC (rev 6749)</span><br><span>+++ trunk/l3kernel/testfiles/m3expl001.luatex.tlg 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -3420,6 +3420,12 @@</span><br><span> Defining \__fp_case_return_o:Nww on line ...</span><br><span> Defining \__fp_case_return_i_o:ww on line ...</span><br><span> Defining \__fp_case_return_ii_o:ww on line ...</span><br><span>+Defining \__fp_int:wTF on line ...</span><br><span>+Defining \__fp_int:wT on line ...</span><br><span>+Defining \__fp_int:wF on line ...</span><br><span>+Defining \__fp_int_p:w on line ...</span><br><span>+Defining \__fp_int_normal:nnnnn on line ...</span><br><span>+Defining \__fp_int_test:Nw on line ...</span><br><span> Defining \__fp_small_int:wTF on line ...</span><br><span> Defining \__fp_small_int_true:wTF on line ...</span><br><span> Defining \__fp_small_int_normal:NnwTF on line ...</span><br><span>@@ -3499,6 +3505,7 @@</span><br><span> Defining \__fp_round_to_nearest_pinf_neg:NNN on line ...</span><br><span> Defining \__fp_round_neg:NNN on line ...</span><br><span> Defining \__fp_round_o:Nw on line ...</span><br><span>+Defining \__fp_round_no_arg_o:Nw on line ...</span><br><span> Defining \__fp_round:Nwww on line ...</span><br><span> Defining \__fp_round_name_from_cs:N on line ...</span><br><span> Defining \__fp_round:Nww on line ...</span><br><span>@@ -3573,6 +3580,8 @@</span><br><span> Defining \__fp_parse_prefix_.:Nw on line ...</span><br><span> Defining \__fp_parse_prefix_(:Nw on line ...</span><br><span> Defining \__fp_parse_lparen_after:NwN on line ...</span><br><span>+Defining \__fp_parse_prefix_,:Nw on line ...</span><br><span>+Defining \__fp_parse_prefix_):Nw on line ...</span><br><span> Defining \__fp_parse_word_inf:N on line ...</span><br><span> Defining \__fp_parse_word_nan:N on line ...</span><br><span> Defining \__fp_parse_word_pi:N on line ...</span><br><span>@@ -3600,6 +3609,8 @@</span><br><span> Defining \__fp_parse_word_atand:N on line ...</span><br><span> Defining \__fp_parse_word_max:N on line ...</span><br><span> Defining \__fp_parse_word_min:N on line ...</span><br><span>+Defining \__fp_parse_word_rand:N on line ...</span><br><span>+Defining \__fp_parse_word_randint:N on line ...</span><br><span> Defining \__fp_parse_word_abs:N on line ...</span><br><span> Defining \__fp_parse_word_exp:N on line ...</span><br><span> Defining \__fp_parse_word_ln:N on line ...</span><br><span>@@ -3631,6 +3642,7 @@</span><br><span> Defining \__fp_parse_round:Nw on line ...</span><br><span> Defining \__fp_parse:n on line ...</span><br><span> Defining \__fp_parse_after:ww on line ...</span><br><span>+Defining \__fp_parse_o:n on line ...</span><br><span> Defining \__fp_parse_operand:Nw on line ...</span><br><span> Defining \__fp_parse_continue:NwN on line ...</span><br><span> Defining \__fp_parse_apply_binary:NwNwN on line ...</span><br><span>@@ -4044,6 +4056,16 @@</span><br><span> Defining \fp_min:nn on line ...</span><br><span> Defining \__fp_array_to_clist:n on line ...</span><br><span> Defining \__fp_array_to_clist_loop:Nw on line ...</span><br><span>+Defining \__fp_rand_o:Nw on line ...</span><br><span>+Defining \__fp_rand_o: on line ...</span><br><span>+Defining \__fp_randint_o:Nw on line ...</span><br><span>+Defining \__fp_randint_badarg:w on line ...</span><br><span>+Defining \__fp_randint_e:w on line ...</span><br><span>+Defining \__fp_randint_narrow_e:nn on line ...</span><br><span>+Defining \__fp_randint_wide_e:nn on line ...</span><br><span>+Defining \__fp_randint_wide_e:nnn on line ...</span><br><span>+Defining \__fp_randint_wide_e:nnnn on line ...</span><br><span>+Defining message LaTeX/kernel/fp-no-random on line ...</span><br><span> Defining \fp_new:N on line ...</span><br><span> Defining \fp_new:c on line ...</span><br><span> Defining \fp_set:Nn on line ...</span><br><span></span><br><span>Modified: trunk/l3kernel/testfiles/m3expl001.ptex.tlg</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/testfiles/m3expl001.ptex.tlg 2016-11-19 00:43:44 UTC (rev 6749)</span><br><span>+++ trunk/l3kernel/testfiles/m3expl001.ptex.tlg 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -3411,6 +3411,12 @@</span><br><span> Defining \__fp_case_return_o:Nww on line ...</span><br><span> Defining \__fp_case_return_i_o:ww on line ...</span><br><span> Defining \__fp_case_return_ii_o:ww on line ...</span><br><span>+Defining \__fp_int:wTF on line ...</span><br><span>+Defining \__fp_int:wT on line ...</span><br><span>+Defining \__fp_int:wF on line ...</span><br><span>+Defining \__fp_int_p:w on line ...</span><br><span>+Defining \__fp_int_normal:nnnnn on line ...</span><br><span>+Defining \__fp_int_test:Nw on line ...</span><br><span> Defining \__fp_small_int:wTF on line ...</span><br><span> Defining \__fp_small_int_true:wTF on line ...</span><br><span> Defining \__fp_small_int_normal:NnwTF on line ...</span><br><span>@@ -3490,6 +3496,7 @@</span><br><span> Defining \__fp_round_to_nearest_pinf_neg:NNN on line ...</span><br><span> Defining \__fp_round_neg:NNN on line ...</span><br><span> Defining \__fp_round_o:Nw on line ...</span><br><span>+Defining \__fp_round_no_arg_o:Nw on line ...</span><br><span> Defining \__fp_round:Nwww on line ...</span><br><span> Defining \__fp_round_name_from_cs:N on line ...</span><br><span> Defining \__fp_round:Nww on line ...</span><br><span>@@ -3564,6 +3571,8 @@</span><br><span> Defining \__fp_parse_prefix_.:Nw on line ...</span><br><span> Defining \__fp_parse_prefix_(:Nw on line ...</span><br><span> Defining \__fp_parse_lparen_after:NwN on line ...</span><br><span>+Defining \__fp_parse_prefix_,:Nw on line ...</span><br><span>+Defining \__fp_parse_prefix_):Nw on line ...</span><br><span> Defining \__fp_parse_word_inf:N on line ...</span><br><span> Defining \__fp_parse_word_nan:N on line ...</span><br><span> Defining \__fp_parse_word_pi:N on line ...</span><br><span>@@ -3591,6 +3600,8 @@</span><br><span> Defining \__fp_parse_word_atand:N on line ...</span><br><span> Defining \__fp_parse_word_max:N on line ...</span><br><span> Defining \__fp_parse_word_min:N on line ...</span><br><span>+Defining \__fp_parse_word_rand:N on line ...</span><br><span>+Defining \__fp_parse_word_randint:N on line ...</span><br><span> Defining \__fp_parse_word_abs:N on line ...</span><br><span> Defining \__fp_parse_word_exp:N on line ...</span><br><span> Defining \__fp_parse_word_ln:N on line ...</span><br><span>@@ -3622,6 +3633,7 @@</span><br><span> Defining \__fp_parse_round:Nw on line ...</span><br><span> Defining \__fp_parse:n on line ...</span><br><span> Defining \__fp_parse_after:ww on line ...</span><br><span>+Defining \__fp_parse_o:n on line ...</span><br><span> Defining \__fp_parse_operand:Nw on line ...</span><br><span> Defining \__fp_parse_continue:NwN on line ...</span><br><span> Defining \__fp_parse_apply_binary:NwNwN on line ...</span><br><span>@@ -4035,6 +4047,14 @@</span><br><span> Defining \fp_min:nn on line ...</span><br><span> Defining \__fp_array_to_clist:n on line ...</span><br><span> Defining \__fp_array_to_clist_loop:Nw on line ...</span><br><span>+Defining \__fp_rand_o:Nw on line ...</span><br><span>+Defining \__fp_rand_o: on line ...</span><br><span>+Defining \__fp_randint_o:Nw on line ...</span><br><span>+Defining \__fp_randint_badarg:w on line ...</span><br><span>+Defining \__fp_randint_e:w on line ...</span><br><span>+Defining \__fp_randint_narrow_e:nn on line ...</span><br><span>+Defining \__fp_randint_wide_e:nn on line ...</span><br><span>+Defining message LaTeX/kernel/fp-no-random on line ...</span><br><span> Defining \fp_new:N on line ...</span><br><span> Defining \fp_new:c on line ...</span><br><span> Defining \fp_set:Nn on line ...</span><br><span></span><br><span>Modified: trunk/l3kernel/testfiles/m3expl001.tlg</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/testfiles/m3expl001.tlg 2016-11-19 00:43:44 UTC (rev 6749)</span><br><span>+++ trunk/l3kernel/testfiles/m3expl001.tlg 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -3411,6 +3411,12 @@</span><br><span> Defining \__fp_case_return_o:Nww on line ...</span><br><span> Defining \__fp_case_return_i_o:ww on line ...</span><br><span> Defining \__fp_case_return_ii_o:ww on line ...</span><br><span>+Defining \__fp_int:wTF on line ...</span><br><span>+Defining \__fp_int:wT on line ...</span><br><span>+Defining \__fp_int:wF on line ...</span><br><span>+Defining \__fp_int_p:w on line ...</span><br><span>+Defining \__fp_int_normal:nnnnn on line ...</span><br><span>+Defining \__fp_int_test:Nw on line ...</span><br><span> Defining \__fp_small_int:wTF on line ...</span><br><span> Defining \__fp_small_int_true:wTF on line ...</span><br><span> Defining \__fp_small_int_normal:NnwTF on line ...</span><br><span>@@ -3490,6 +3496,7 @@</span><br><span> Defining \__fp_round_to_nearest_pinf_neg:NNN on line ...</span><br><span> Defining \__fp_round_neg:NNN on line ...</span><br><span> Defining \__fp_round_o:Nw on line ...</span><br><span>+Defining \__fp_round_no_arg_o:Nw on line ...</span><br><span> Defining \__fp_round:Nwww on line ...</span><br><span> Defining \__fp_round_name_from_cs:N on line ...</span><br><span> Defining \__fp_round:Nww on line ...</span><br><span>@@ -3564,6 +3571,8 @@</span><br><span> Defining \__fp_parse_prefix_.:Nw on line ...</span><br><span> Defining \__fp_parse_prefix_(:Nw on line ...</span><br><span> Defining \__fp_parse_lparen_after:NwN on line ...</span><br><span>+Defining \__fp_parse_prefix_,:Nw on line ...</span><br><span>+Defining \__fp_parse_prefix_):Nw on line ...</span><br><span> Defining \__fp_parse_word_inf:N on line ...</span><br><span> Defining \__fp_parse_word_nan:N on line ...</span><br><span> Defining \__fp_parse_word_pi:N on line ...</span><br><span>@@ -3591,6 +3600,8 @@</span><br><span> Defining \__fp_parse_word_atand:N on line ...</span><br><span> Defining \__fp_parse_word_max:N on line ...</span><br><span> Defining \__fp_parse_word_min:N on line ...</span><br><span>+Defining \__fp_parse_word_rand:N on line ...</span><br><span>+Defining \__fp_parse_word_randint:N on line ...</span><br><span> Defining \__fp_parse_word_abs:N on line ...</span><br><span> Defining \__fp_parse_word_exp:N on line ...</span><br><span> Defining \__fp_parse_word_ln:N on line ...</span><br><span>@@ -3622,6 +3633,7 @@</span><br><span> Defining \__fp_parse_round:Nw on line ...</span><br><span> Defining \__fp_parse:n on line ...</span><br><span> Defining \__fp_parse_after:ww on line ...</span><br><span>+Defining \__fp_parse_o:n on line ...</span><br><span> Defining \__fp_parse_operand:Nw on line ...</span><br><span> Defining \__fp_parse_continue:NwN on line ...</span><br><span> Defining \__fp_parse_apply_binary:NwNwN on line ...</span><br><span>@@ -4035,6 +4047,16 @@</span><br><span> Defining \fp_min:nn on line ...</span><br><span> Defining \__fp_array_to_clist:n on line ...</span><br><span> Defining \__fp_array_to_clist_loop:Nw on line ...</span><br><span>+Defining \__fp_rand_o:Nw on line ...</span><br><span>+Defining \__fp_rand_o: on line ...</span><br><span>+Defining \__fp_randint_o:Nw on line ...</span><br><span>+Defining \__fp_randint_badarg:w on line ...</span><br><span>+Defining \__fp_randint_e:w on line ...</span><br><span>+Defining \__fp_randint_narrow_e:nn on line ...</span><br><span>+Defining \__fp_randint_wide_e:nn on line ...</span><br><span>+Defining \__fp_randint_wide_e:nnn on line ...</span><br><span>+Defining \__fp_randint_wide_e:nnnn on line ...</span><br><span>+Defining message LaTeX/kernel/fp-no-random on line ...</span><br><span> Defining \fp_new:N on line ...</span><br><span> Defining \fp_new:c on line ...</span><br><span> Defining \fp_set:Nn on line ...</span><br><span></span><br><span>Modified: trunk/l3kernel/testfiles/m3expl001.uptex.tlg</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/testfiles/m3expl001.uptex.tlg 2016-11-19 00:43:44 UTC (rev 6749)</span><br><span>+++ trunk/l3kernel/testfiles/m3expl001.uptex.tlg 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -3411,6 +3411,12 @@</span><br><span> Defining \__fp_case_return_o:Nww on line ...</span><br><span> Defining \__fp_case_return_i_o:ww on line ...</span><br><span> Defining \__fp_case_return_ii_o:ww on line ...</span><br><span>+Defining \__fp_int:wTF on line ...</span><br><span>+Defining \__fp_int:wT on line ...</span><br><span>+Defining \__fp_int:wF on line ...</span><br><span>+Defining \__fp_int_p:w on line ...</span><br><span>+Defining \__fp_int_normal:nnnnn on line ...</span><br><span>+Defining \__fp_int_test:Nw on line ...</span><br><span> Defining \__fp_small_int:wTF on line ...</span><br><span> Defining \__fp_small_int_true:wTF on line ...</span><br><span> Defining \__fp_small_int_normal:NnwTF on line ...</span><br><span>@@ -3490,6 +3496,7 @@</span><br><span> Defining \__fp_round_to_nearest_pinf_neg:NNN on line ...</span><br><span> Defining \__fp_round_neg:NNN on line ...</span><br><span> Defining \__fp_round_o:Nw on line ...</span><br><span>+Defining \__fp_round_no_arg_o:Nw on line ...</span><br><span> Defining \__fp_round:Nwww on line ...</span><br><span> Defining \__fp_round_name_from_cs:N on line ...</span><br><span> Defining \__fp_round:Nww on line ...</span><br><span>@@ -3564,6 +3571,8 @@</span><br><span> Defining \__fp_parse_prefix_.:Nw on line ...</span><br><span> Defining \__fp_parse_prefix_(:Nw on line ...</span><br><span> Defining \__fp_parse_lparen_after:NwN on line ...</span><br><span>+Defining \__fp_parse_prefix_,:Nw on line ...</span><br><span>+Defining \__fp_parse_prefix_):Nw on line ...</span><br><span> Defining \__fp_parse_word_inf:N on line ...</span><br><span> Defining \__fp_parse_word_nan:N on line ...</span><br><span> Defining \__fp_parse_word_pi:N on line ...</span><br><span>@@ -3591,6 +3600,8 @@</span><br><span> Defining \__fp_parse_word_atand:N on line ...</span><br><span> Defining \__fp_parse_word_max:N on line ...</span><br><span> Defining \__fp_parse_word_min:N on line ...</span><br><span>+Defining \__fp_parse_word_rand:N on line ...</span><br><span>+Defining \__fp_parse_word_randint:N on line ...</span><br><span> Defining \__fp_parse_word_abs:N on line ...</span><br><span> Defining \__fp_parse_word_exp:N on line ...</span><br><span> Defining \__fp_parse_word_ln:N on line ...</span><br><span>@@ -3622,6 +3633,7 @@</span><br><span> Defining \__fp_parse_round:Nw on line ...</span><br><span> Defining \__fp_parse:n on line ...</span><br><span> Defining \__fp_parse_after:ww on line ...</span><br><span>+Defining \__fp_parse_o:n on line ...</span><br><span> Defining \__fp_parse_operand:Nw on line ...</span><br><span> Defining \__fp_parse_continue:NwN on line ...</span><br><span> Defining \__fp_parse_apply_binary:NwNwN on line ...</span><br><span>@@ -4035,6 +4047,14 @@</span><br><span> Defining \fp_min:nn on line ...</span><br><span> Defining \__fp_array_to_clist:n on line ...</span><br><span> Defining \__fp_array_to_clist_loop:Nw on line ...</span><br><span>+Defining \__fp_rand_o:Nw on line ...</span><br><span>+Defining \__fp_rand_o: on line ...</span><br><span>+Defining \__fp_randint_o:Nw on line ...</span><br><span>+Defining \__fp_randint_badarg:w on line ...</span><br><span>+Defining \__fp_randint_e:w on line ...</span><br><span>+Defining \__fp_randint_narrow_e:nn on line ...</span><br><span>+Defining \__fp_randint_wide_e:nn on line ...</span><br><span>+Defining message LaTeX/kernel/fp-no-random on line ...</span><br><span> Defining \fp_new:N on line ...</span><br><span> Defining \fp_new:c on line ...</span><br><span> Defining \fp_set:Nn on line ...</span><br><span></span><br><span>Modified: trunk/l3kernel/testfiles/m3expl001.xetex.tlg</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/testfiles/m3expl001.xetex.tlg 2016-11-19 00:43:44 UTC (rev 6749)</span><br><span>+++ trunk/l3kernel/testfiles/m3expl001.xetex.tlg 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -3418,6 +3418,12 @@</span><br><span> Defining \__fp_case_return_o:Nww on line ...</span><br><span> Defining \__fp_case_return_i_o:ww on line ...</span><br><span> Defining \__fp_case_return_ii_o:ww on line ...</span><br><span>+Defining \__fp_int:wTF on line ...</span><br><span>+Defining \__fp_int:wT on line ...</span><br><span>+Defining \__fp_int:wF on line ...</span><br><span>+Defining \__fp_int_p:w on line ...</span><br><span>+Defining \__fp_int_normal:nnnnn on line ...</span><br><span>+Defining \__fp_int_test:Nw on line ...</span><br><span> Defining \__fp_small_int:wTF on line ...</span><br><span> Defining \__fp_small_int_true:wTF on line ...</span><br><span> Defining \__fp_small_int_normal:NnwTF on line ...</span><br><span>@@ -3497,6 +3503,7 @@</span><br><span> Defining \__fp_round_to_nearest_pinf_neg:NNN on line ...</span><br><span> Defining \__fp_round_neg:NNN on line ...</span><br><span> Defining \__fp_round_o:Nw on line ...</span><br><span>+Defining \__fp_round_no_arg_o:Nw on line ...</span><br><span> Defining \__fp_round:Nwww on line ...</span><br><span> Defining \__fp_round_name_from_cs:N on line ...</span><br><span> Defining \__fp_round:Nww on line ...</span><br><span>@@ -3571,6 +3578,8 @@</span><br><span> Defining \__fp_parse_prefix_.:Nw on line ...</span><br><span> Defining \__fp_parse_prefix_(:Nw on line ...</span><br><span> Defining \__fp_parse_lparen_after:NwN on line ...</span><br><span>+Defining \__fp_parse_prefix_,:Nw on line ...</span><br><span>+Defining \__fp_parse_prefix_):Nw on line ...</span><br><span> Defining \__fp_parse_word_inf:N on line ...</span><br><span> Defining \__fp_parse_word_nan:N on line ...</span><br><span> Defining \__fp_parse_word_pi:N on line ...</span><br><span>@@ -3598,6 +3607,8 @@</span><br><span> Defining \__fp_parse_word_atand:N on line ...</span><br><span> Defining \__fp_parse_word_max:N on line ...</span><br><span> Defining \__fp_parse_word_min:N on line ...</span><br><span>+Defining \__fp_parse_word_rand:N on line ...</span><br><span>+Defining \__fp_parse_word_randint:N on line ...</span><br><span> Defining \__fp_parse_word_abs:N on line ...</span><br><span> Defining \__fp_parse_word_exp:N on line ...</span><br><span> Defining \__fp_parse_word_ln:N on line ...</span><br><span>@@ -3629,6 +3640,7 @@</span><br><span> Defining \__fp_parse_round:Nw on line ...</span><br><span> Defining \__fp_parse:n on line ...</span><br><span> Defining \__fp_parse_after:ww on line ...</span><br><span>+Defining \__fp_parse_o:n on line ...</span><br><span> Defining \__fp_parse_operand:Nw on line ...</span><br><span> Defining \__fp_parse_continue:NwN on line ...</span><br><span> Defining \__fp_parse_apply_binary:NwNwN on line ...</span><br><span>@@ -4042,6 +4054,14 @@</span><br><span> Defining \fp_min:nn on line ...</span><br><span> Defining \__fp_array_to_clist:n on line ...</span><br><span> Defining \__fp_array_to_clist_loop:Nw on line ...</span><br><span>+Defining \__fp_rand_o:Nw on line ...</span><br><span>+Defining \__fp_rand_o: on line ...</span><br><span>+Defining \__fp_randint_o:Nw on line ...</span><br><span>+Defining \__fp_randint_badarg:w on line ...</span><br><span>+Defining \__fp_randint_e:w on line ...</span><br><span>+Defining \__fp_randint_narrow_e:nn on line ...</span><br><span>+Defining \__fp_randint_wide_e:nn on line ...</span><br><span>+Defining message LaTeX/kernel/fp-no-random on line ...</span><br><span> Defining \fp_new:N on line ...</span><br><span> Defining \fp_new:c on line ...</span><br><span> Defining \fp_set:Nn on line ...</span><br><span></span><br><span>Modified: trunk/l3kernel/testfiles/m3expl003.luatex.tlg</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/testfiles/m3expl003.luatex.tlg 2016-11-19 00:43:44 UTC (rev 6749)</span><br><span>+++ trunk/l3kernel/testfiles/m3expl003.luatex.tlg 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -3421,6 +3421,12 @@</span><br><span> Defining \__fp_case_return_o:Nww on line ...</span><br><span> Defining \__fp_case_return_i_o:ww on line ...</span><br><span> Defining \__fp_case_return_ii_o:ww on line ...</span><br><span>+Defining \__fp_int:wTF on line ...</span><br><span>+Defining \__fp_int:wT on line ...</span><br><span>+Defining \__fp_int:wF on line ...</span><br><span>+Defining \__fp_int_p:w on line ...</span><br><span>+Defining \__fp_int_normal:nnnnn on line ...</span><br><span>+Defining \__fp_int_test:Nw on line ...</span><br><span> Defining \__fp_small_int:wTF on line ...</span><br><span> Defining \__fp_small_int_true:wTF on line ...</span><br><span> Defining \__fp_small_int_normal:NnwTF on line ...</span><br><span>@@ -3500,6 +3506,7 @@</span><br><span> Defining \__fp_round_to_nearest_pinf_neg:NNN on line ...</span><br><span> Defining \__fp_round_neg:NNN on line ...</span><br><span> Defining \__fp_round_o:Nw on line ...</span><br><span>+Defining \__fp_round_no_arg_o:Nw on line ...</span><br><span> Defining \__fp_round:Nwww on line ...</span><br><span> Defining \__fp_round_name_from_cs:N on line ...</span><br><span> Defining \__fp_round:Nww on line ...</span><br><span>@@ -3574,6 +3581,8 @@</span><br><span> Defining \__fp_parse_prefix_.:Nw on line ...</span><br><span> Defining \__fp_parse_prefix_(:Nw on line ...</span><br><span> Defining \__fp_parse_lparen_after:NwN on line ...</span><br><span>+Defining \__fp_parse_prefix_,:Nw on line ...</span><br><span>+Defining \__fp_parse_prefix_):Nw on line ...</span><br><span> Defining \__fp_parse_word_inf:N on line ...</span><br><span> Defining \__fp_parse_word_nan:N on line ...</span><br><span> Defining \__fp_parse_word_pi:N on line ...</span><br><span>@@ -3601,6 +3610,8 @@</span><br><span> Defining \__fp_parse_word_atand:N on line ...</span><br><span> Defining \__fp_parse_word_max:N on line ...</span><br><span> Defining \__fp_parse_word_min:N on line ...</span><br><span>+Defining \__fp_parse_word_rand:N on line ...</span><br><span>+Defining \__fp_parse_word_randint:N on line ...</span><br><span> Defining \__fp_parse_word_abs:N on line ...</span><br><span> Defining \__fp_parse_word_exp:N on line ...</span><br><span> Defining \__fp_parse_word_ln:N on line ...</span><br><span>@@ -3632,6 +3643,7 @@</span><br><span> Defining \__fp_parse_round:Nw on line ...</span><br><span> Defining \__fp_parse:n on line ...</span><br><span> Defining \__fp_parse_after:ww on line ...</span><br><span>+Defining \__fp_parse_o:n on line ...</span><br><span> Defining \__fp_parse_operand:Nw on line ...</span><br><span> Defining \__fp_parse_continue:NwN on line ...</span><br><span> Defining \__fp_parse_apply_binary:NwNwN on line ...</span><br><span>@@ -4045,6 +4057,16 @@</span><br><span> Defining \fp_min:nn on line ...</span><br><span> Defining \__fp_array_to_clist:n on line ...</span><br><span> Defining \__fp_array_to_clist_loop:Nw on line ...</span><br><span>+Defining \__fp_rand_o:Nw on line ...</span><br><span>+Defining \__fp_rand_o: on line ...</span><br><span>+Defining \__fp_randint_o:Nw on line ...</span><br><span>+Defining \__fp_randint_badarg:w on line ...</span><br><span>+Defining \__fp_randint_e:w on line ...</span><br><span>+Defining \__fp_randint_narrow_e:nn on line ...</span><br><span>+Defining \__fp_randint_wide_e:nn on line ...</span><br><span>+Defining \__fp_randint_wide_e:nnn on line ...</span><br><span>+Defining \__fp_randint_wide_e:nnnn on line ...</span><br><span>+Defining message LaTeX/kernel/fp-no-random on line ...</span><br><span> Defining \fp_new:N on line ...</span><br><span> Defining \fp_new:c on line ...</span><br><span> Defining \fp_set:Nn on line ...</span><br><span></span><br><span>Modified: trunk/l3kernel/testfiles/m3expl003.ptex.tlg</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/testfiles/m3expl003.ptex.tlg 2016-11-19 00:43:44 UTC (rev 6749)</span><br><span>+++ trunk/l3kernel/testfiles/m3expl003.ptex.tlg 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -3412,6 +3412,12 @@</span><br><span> Defining \__fp_case_return_o:Nww on line ...</span><br><span> Defining \__fp_case_return_i_o:ww on line ...</span><br><span> Defining \__fp_case_return_ii_o:ww on line ...</span><br><span>+Defining \__fp_int:wTF on line ...</span><br><span>+Defining \__fp_int:wT on line ...</span><br><span>+Defining \__fp_int:wF on line ...</span><br><span>+Defining \__fp_int_p:w on line ...</span><br><span>+Defining \__fp_int_normal:nnnnn on line ...</span><br><span>+Defining \__fp_int_test:Nw on line ...</span><br><span> Defining \__fp_small_int:wTF on line ...</span><br><span> Defining \__fp_small_int_true:wTF on line ...</span><br><span> Defining \__fp_small_int_normal:NnwTF on line ...</span><br><span>@@ -3491,6 +3497,7 @@</span><br><span> Defining \__fp_round_to_nearest_pinf_neg:NNN on line ...</span><br><span> Defining \__fp_round_neg:NNN on line ...</span><br><span> Defining \__fp_round_o:Nw on line ...</span><br><span>+Defining \__fp_round_no_arg_o:Nw on line ...</span><br><span> Defining \__fp_round:Nwww on line ...</span><br><span> Defining \__fp_round_name_from_cs:N on line ...</span><br><span> Defining \__fp_round:Nww on line ...</span><br><span>@@ -3565,6 +3572,8 @@</span><br><span> Defining \__fp_parse_prefix_.:Nw on line ...</span><br><span> Defining \__fp_parse_prefix_(:Nw on line ...</span><br><span> Defining \__fp_parse_lparen_after:NwN on line ...</span><br><span>+Defining \__fp_parse_prefix_,:Nw on line ...</span><br><span>+Defining \__fp_parse_prefix_):Nw on line ...</span><br><span> Defining \__fp_parse_word_inf:N on line ...</span><br><span> Defining \__fp_parse_word_nan:N on line ...</span><br><span> Defining \__fp_parse_word_pi:N on line ...</span><br><span>@@ -3592,6 +3601,8 @@</span><br><span> Defining \__fp_parse_word_atand:N on line ...</span><br><span> Defining \__fp_parse_word_max:N on line ...</span><br><span> Defining \__fp_parse_word_min:N on line ...</span><br><span>+Defining \__fp_parse_word_rand:N on line ...</span><br><span>+Defining \__fp_parse_word_randint:N on line ...</span><br><span> Defining \__fp_parse_word_abs:N on line ...</span><br><span> Defining \__fp_parse_word_exp:N on line ...</span><br><span> Defining \__fp_parse_word_ln:N on line ...</span><br><span>@@ -3623,6 +3634,7 @@</span><br><span> Defining \__fp_parse_round:Nw on line ...</span><br><span> Defining \__fp_parse:n on line ...</span><br><span> Defining \__fp_parse_after:ww on line ...</span><br><span>+Defining \__fp_parse_o:n on line ...</span><br><span> Defining \__fp_parse_operand:Nw on line ...</span><br><span> Defining \__fp_parse_continue:NwN on line ...</span><br><span> Defining \__fp_parse_apply_binary:NwNwN on line ...</span><br><span>@@ -4036,6 +4048,14 @@</span><br><span> Defining \fp_min:nn on line ...</span><br><span> Defining \__fp_array_to_clist:n on line ...</span><br><span> Defining \__fp_array_to_clist_loop:Nw on line ...</span><br><span>+Defining \__fp_rand_o:Nw on line ...</span><br><span>+Defining \__fp_rand_o: on line ...</span><br><span>+Defining \__fp_randint_o:Nw on line ...</span><br><span>+Defining \__fp_randint_badarg:w on line ...</span><br><span>+Defining \__fp_randint_e:w on line ...</span><br><span>+Defining \__fp_randint_narrow_e:nn on line ...</span><br><span>+Defining \__fp_randint_wide_e:nn on line ...</span><br><span>+Defining message LaTeX/kernel/fp-no-random on line ...</span><br><span> Defining \fp_new:N on line ...</span><br><span> Defining \fp_new:c on line ...</span><br><span> Defining \fp_set:Nn on line ...</span><br><span></span><br><span>Modified: trunk/l3kernel/testfiles/m3expl003.tlg</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/testfiles/m3expl003.tlg 2016-11-19 00:43:44 UTC (rev 6749)</span><br><span>+++ trunk/l3kernel/testfiles/m3expl003.tlg 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -3412,6 +3412,12 @@</span><br><span> Defining \__fp_case_return_o:Nww on line ...</span><br><span> Defining \__fp_case_return_i_o:ww on line ...</span><br><span> Defining \__fp_case_return_ii_o:ww on line ...</span><br><span>+Defining \__fp_int:wTF on line ...</span><br><span>+Defining \__fp_int:wT on line ...</span><br><span>+Defining \__fp_int:wF on line ...</span><br><span>+Defining \__fp_int_p:w on line ...</span><br><span>+Defining \__fp_int_normal:nnnnn on line ...</span><br><span>+Defining \__fp_int_test:Nw on line ...</span><br><span> Defining \__fp_small_int:wTF on line ...</span><br><span> Defining \__fp_small_int_true:wTF on line ...</span><br><span> Defining \__fp_small_int_normal:NnwTF on line ...</span><br><span>@@ -3491,6 +3497,7 @@</span><br><span> Defining \__fp_round_to_nearest_pinf_neg:NNN on line ...</span><br><span> Defining \__fp_round_neg:NNN on line ...</span><br><span> Defining \__fp_round_o:Nw on line ...</span><br><span>+Defining \__fp_round_no_arg_o:Nw on line ...</span><br><span> Defining \__fp_round:Nwww on line ...</span><br><span> Defining \__fp_round_name_from_cs:N on line ...</span><br><span> Defining \__fp_round:Nww on line ...</span><br><span>@@ -3565,6 +3572,8 @@</span><br><span> Defining \__fp_parse_prefix_.:Nw on line ...</span><br><span> Defining \__fp_parse_prefix_(:Nw on line ...</span><br><span> Defining \__fp_parse_lparen_after:NwN on line ...</span><br><span>+Defining \__fp_parse_prefix_,:Nw on line ...</span><br><span>+Defining \__fp_parse_prefix_):Nw on line ...</span><br><span> Defining \__fp_parse_word_inf:N on line ...</span><br><span> Defining \__fp_parse_word_nan:N on line ...</span><br><span> Defining \__fp_parse_word_pi:N on line ...</span><br><span>@@ -3592,6 +3601,8 @@</span><br><span> Defining \__fp_parse_word_atand:N on line ...</span><br><span> Defining \__fp_parse_word_max:N on line ...</span><br><span> Defining \__fp_parse_word_min:N on line ...</span><br><span>+Defining \__fp_parse_word_rand:N on line ...</span><br><span>+Defining \__fp_parse_word_randint:N on line ...</span><br><span> Defining \__fp_parse_word_abs:N on line ...</span><br><span> Defining \__fp_parse_word_exp:N on line ...</span><br><span> Defining \__fp_parse_word_ln:N on line ...</span><br><span>@@ -3623,6 +3634,7 @@</span><br><span> Defining \__fp_parse_round:Nw on line ...</span><br><span> Defining \__fp_parse:n on line ...</span><br><span> Defining \__fp_parse_after:ww on line ...</span><br><span>+Defining \__fp_parse_o:n on line ...</span><br><span> Defining \__fp_parse_operand:Nw on line ...</span><br><span> Defining \__fp_parse_continue:NwN on line ...</span><br><span> Defining \__fp_parse_apply_binary:NwNwN on line ...</span><br><span>@@ -4036,6 +4048,16 @@</span><br><span> Defining \fp_min:nn on line ...</span><br><span> Defining \__fp_array_to_clist:n on line ...</span><br><span> Defining \__fp_array_to_clist_loop:Nw on line ...</span><br><span>+Defining \__fp_rand_o:Nw on line ...</span><br><span>+Defining \__fp_rand_o: on line ...</span><br><span>+Defining \__fp_randint_o:Nw on line ...</span><br><span>+Defining \__fp_randint_badarg:w on line ...</span><br><span>+Defining \__fp_randint_e:w on line ...</span><br><span>+Defining \__fp_randint_narrow_e:nn on line ...</span><br><span>+Defining \__fp_randint_wide_e:nn on line ...</span><br><span>+Defining \__fp_randint_wide_e:nnn on line ...</span><br><span>+Defining \__fp_randint_wide_e:nnnn on line ...</span><br><span>+Defining message LaTeX/kernel/fp-no-random on line ...</span><br><span> Defining \fp_new:N on line ...</span><br><span> Defining \fp_new:c on line ...</span><br><span> Defining \fp_set:Nn on line ...</span><br><span></span><br><span>Modified: trunk/l3kernel/testfiles/m3expl003.uptex.tlg</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/testfiles/m3expl003.uptex.tlg 2016-11-19 00:43:44 UTC (rev 6749)</span><br><span>+++ trunk/l3kernel/testfiles/m3expl003.uptex.tlg 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -3412,6 +3412,12 @@</span><br><span> Defining \__fp_case_return_o:Nww on line ...</span><br><span> Defining \__fp_case_return_i_o:ww on line ...</span><br><span> Defining \__fp_case_return_ii_o:ww on line ...</span><br><span>+Defining \__fp_int:wTF on line ...</span><br><span>+Defining \__fp_int:wT on line ...</span><br><span>+Defining \__fp_int:wF on line ...</span><br><span>+Defining \__fp_int_p:w on line ...</span><br><span>+Defining \__fp_int_normal:nnnnn on line ...</span><br><span>+Defining \__fp_int_test:Nw on line ...</span><br><span> Defining \__fp_small_int:wTF on line ...</span><br><span> Defining \__fp_small_int_true:wTF on line ...</span><br><span> Defining \__fp_small_int_normal:NnwTF on line ...</span><br><span>@@ -3491,6 +3497,7 @@</span><br><span> Defining \__fp_round_to_nearest_pinf_neg:NNN on line ...</span><br><span> Defining \__fp_round_neg:NNN on line ...</span><br><span> Defining \__fp_round_o:Nw on line ...</span><br><span>+Defining \__fp_round_no_arg_o:Nw on line ...</span><br><span> Defining \__fp_round:Nwww on line ...</span><br><span> Defining \__fp_round_name_from_cs:N on line ...</span><br><span> Defining \__fp_round:Nww on line ...</span><br><span>@@ -3565,6 +3572,8 @@</span><br><span> Defining \__fp_parse_prefix_.:Nw on line ...</span><br><span> Defining \__fp_parse_prefix_(:Nw on line ...</span><br><span> Defining \__fp_parse_lparen_after:NwN on line ...</span><br><span>+Defining \__fp_parse_prefix_,:Nw on line ...</span><br><span>+Defining \__fp_parse_prefix_):Nw on line ...</span><br><span> Defining \__fp_parse_word_inf:N on line ...</span><br><span> Defining \__fp_parse_word_nan:N on line ...</span><br><span> Defining \__fp_parse_word_pi:N on line ...</span><br><span>@@ -3592,6 +3601,8 @@</span><br><span> Defining \__fp_parse_word_atand:N on line ...</span><br><span> Defining \__fp_parse_word_max:N on line ...</span><br><span> Defining \__fp_parse_word_min:N on line ...</span><br><span>+Defining \__fp_parse_word_rand:N on line ...</span><br><span>+Defining \__fp_parse_word_randint:N on line ...</span><br><span> Defining \__fp_parse_word_abs:N on line ...</span><br><span> Defining \__fp_parse_word_exp:N on line ...</span><br><span> Defining \__fp_parse_word_ln:N on line ...</span><br><span>@@ -3623,6 +3634,7 @@</span><br><span> Defining \__fp_parse_round:Nw on line ...</span><br><span> Defining \__fp_parse:n on line ...</span><br><span> Defining \__fp_parse_after:ww on line ...</span><br><span>+Defining \__fp_parse_o:n on line ...</span><br><span> Defining \__fp_parse_operand:Nw on line ...</span><br><span> Defining \__fp_parse_continue:NwN on line ...</span><br><span> Defining \__fp_parse_apply_binary:NwNwN on line ...</span><br><span>@@ -4036,6 +4048,14 @@</span><br><span> Defining \fp_min:nn on line ...</span><br><span> Defining \__fp_array_to_clist:n on line ...</span><br><span> Defining \__fp_array_to_clist_loop:Nw on line ...</span><br><span>+Defining \__fp_rand_o:Nw on line ...</span><br><span>+Defining \__fp_rand_o: on line ...</span><br><span>+Defining \__fp_randint_o:Nw on line ...</span><br><span>+Defining \__fp_randint_badarg:w on line ...</span><br><span>+Defining \__fp_randint_e:w on line ...</span><br><span>+Defining \__fp_randint_narrow_e:nn on line ...</span><br><span>+Defining \__fp_randint_wide_e:nn on line ...</span><br><span>+Defining message LaTeX/kernel/fp-no-random on line ...</span><br><span> Defining \fp_new:N on line ...</span><br><span> Defining \fp_new:c on line ...</span><br><span> Defining \fp_set:Nn on line ...</span><br><span></span><br><span>Modified: trunk/l3kernel/testfiles/m3expl003.xetex.tlg</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/testfiles/m3expl003.xetex.tlg 2016-11-19 00:43:44 UTC (rev 6749)</span><br><span>+++ trunk/l3kernel/testfiles/m3expl003.xetex.tlg 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -3419,6 +3419,12 @@</span><br><span> Defining \__fp_case_return_o:Nww on line ...</span><br><span> Defining \__fp_case_return_i_o:ww on line ...</span><br><span> Defining \__fp_case_return_ii_o:ww on line ...</span><br><span>+Defining \__fp_int:wTF on line ...</span><br><span>+Defining \__fp_int:wT on line ...</span><br><span>+Defining \__fp_int:wF on line ...</span><br><span>+Defining \__fp_int_p:w on line ...</span><br><span>+Defining \__fp_int_normal:nnnnn on line ...</span><br><span>+Defining \__fp_int_test:Nw on line ...</span><br><span> Defining \__fp_small_int:wTF on line ...</span><br><span> Defining \__fp_small_int_true:wTF on line ...</span><br><span> Defining \__fp_small_int_normal:NnwTF on line ...</span><br><span>@@ -3498,6 +3504,7 @@</span><br><span> Defining \__fp_round_to_nearest_pinf_neg:NNN on line ...</span><br><span> Defining \__fp_round_neg:NNN on line ...</span><br><span> Defining \__fp_round_o:Nw on line ...</span><br><span>+Defining \__fp_round_no_arg_o:Nw on line ...</span><br><span> Defining \__fp_round:Nwww on line ...</span><br><span> Defining \__fp_round_name_from_cs:N on line ...</span><br><span> Defining \__fp_round:Nww on line ...</span><br><span>@@ -3572,6 +3579,8 @@</span><br><span> Defining \__fp_parse_prefix_.:Nw on line ...</span><br><span> Defining \__fp_parse_prefix_(:Nw on line ...</span><br><span> Defining \__fp_parse_lparen_after:NwN on line ...</span><br><span>+Defining \__fp_parse_prefix_,:Nw on line ...</span><br><span>+Defining \__fp_parse_prefix_):Nw on line ...</span><br><span> Defining \__fp_parse_word_inf:N on line ...</span><br><span> Defining \__fp_parse_word_nan:N on line ...</span><br><span> Defining \__fp_parse_word_pi:N on line ...</span><br><span>@@ -3599,6 +3608,8 @@</span><br><span> Defining \__fp_parse_word_atand:N on line ...</span><br><span> Defining \__fp_parse_word_max:N on line ...</span><br><span> Defining \__fp_parse_word_min:N on line ...</span><br><span>+Defining \__fp_parse_word_rand:N on line ...</span><br><span>+Defining \__fp_parse_word_randint:N on line ...</span><br><span> Defining \__fp_parse_word_abs:N on line ...</span><br><span> Defining \__fp_parse_word_exp:N on line ...</span><br><span> Defining \__fp_parse_word_ln:N on line ...</span><br><span>@@ -3630,6 +3641,7 @@</span><br><span> Defining \__fp_parse_round:Nw on line ...</span><br><span> Defining \__fp_parse:n on line ...</span><br><span> Defining \__fp_parse_after:ww on line ...</span><br><span>+Defining \__fp_parse_o:n on line ...</span><br><span> Defining \__fp_parse_operand:Nw on line ...</span><br><span> Defining \__fp_parse_continue:NwN on line ...</span><br><span> Defining \__fp_parse_apply_binary:NwNwN on line ...</span><br><span>@@ -4043,6 +4055,14 @@</span><br><span> Defining \fp_min:nn on line ...</span><br><span> Defining \__fp_array_to_clist:n on line ...</span><br><span> Defining \__fp_array_to_clist_loop:Nw on line ...</span><br><span>+Defining \__fp_rand_o:Nw on line ...</span><br><span>+Defining \__fp_rand_o: on line ...</span><br><span>+Defining \__fp_randint_o:Nw on line ...</span><br><span>+Defining \__fp_randint_badarg:w on line ...</span><br><span>+Defining \__fp_randint_e:w on line ...</span><br><span>+Defining \__fp_randint_narrow_e:nn on line ...</span><br><span>+Defining \__fp_randint_wide_e:nn on line ...</span><br><span>+Defining message LaTeX/kernel/fp-no-random on line ...</span><br><span> Defining \fp_new:N on line ...</span><br><span> Defining \fp_new:c on line ...</span><br><span> Defining \fp_set:Nn on line ...</span><br><span></span><br><span>Modified: trunk/l3kernel/testfiles/m3fp-parse002.lvt</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/testfiles/m3fp-parse002.lvt 2016-11-19 00:43:44 UTC (rev 6749)</span><br><span>+++ trunk/l3kernel/testfiles/m3fp-parse002.lvt 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -102,6 +102,19 @@</span><br><span></span><br><span> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span><br><span></span><br><span>+\TEST { Extra~or~missing~arguments }</span><br><span>+ {</span><br><span>+ \fp_log:n { min() }</span><br><span>+ \fp_log:n { max(,~\c_space_tl,,) }</span><br><span>+ \fp_log:n { sin(0,) }</span><br><span>+ \fp_log:n { sin(,0) }</span><br><span>+ \fp_log:n { sin() }</span><br><span>+ \fp_log:n { inf() }</span><br><span>+ \fp_log:n { -0+() }</span><br><span>+ }</span><br><span>+</span><br><span>+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span><br><span>+</span><br><span> % \TESTEXP { Indexing }</span><br><span> % {</span><br><span> % \fp_eval:n { (\1,\2\3,\4)[\0,\2][\1,\0] + \.\2 } \NEWLINE</span><br><span></span><br><span>Modified: trunk/l3kernel/testfiles/m3fp-parse002.tlg</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/testfiles/m3fp-parse002.tlg 2016-11-19 00:43:44 UTC (rev 6749)</span><br><span>+++ trunk/l3kernel/testfiles/m3fp-parse002.tlg 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -146,3 +146,68 @@</span><br><span> and I'll forget about whatever was undefined.</span><br><blockquote type="cite"><span>\sin (3)=nan.</span><br></blockquote><span> ============================================================</span><br><span>+============================================================</span><br><span>+TEST 7: Extra or missing arguments</span><br><span>+============================================================</span><br><span>+> min()=inf.</span><br><span>+> max(, \c_space_tl ,,)=-inf.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Unexpected comma: extra arguments ignored.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+> sin(0,)=0.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Missing number before ','.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Unexpected comma: extra arguments ignored.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+> sin(,0)=nan.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Missing number before ')'.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+> sin()=nan.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Missing number before ')'.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+> inf()=nan.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Missing number before ')'.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+> -0+()=nan.</span><br><span>+============================================================</span><br><span></span><br><span>Added: trunk/l3kernel/testfiles/m3fp-rand001.lvt</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/testfiles/m3fp-rand001.lvt (rev 0)</span><br><span>+++ trunk/l3kernel/testfiles/m3fp-rand001.lvt 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -0,0 +1,58 @@</span><br><span>+%</span><br><span>+% Copyright (C) 2016 LaTeX3 Project</span><br><span>+%</span><br><span>+</span><br><span>+\documentclass{minimal}</span><br><span>+\input{regression-test}</span><br><span>+</span><br><span>+\RequirePackage[check-declarations,log-functions]{expl3}</span><br><span>+</span><br><span>+\begin{document}</span><br><span>+\START</span><br><span>+\AUTHOR{Bruno Le Floch}</span><br><span>+\ExplSyntaxOn</span><br><span>+</span><br><span>+\cs_if_exist_use:NT \pdftex_setrandomseed:D { 0 }</span><br><span>+\OMIT</span><br><span>+\cs_if_exist:NTF \pdftex_uniformdeviate:D</span><br><span>+ { \cs_new:Npn \test:n #1 { \prg_replicate:nn { 5 } { \fp_to_tl:n {#1} \NEWLINE } } }</span><br><span>+ { \cs_new:Npn \test:n #1 { \fp_to_tl:n {#1} , ~ } }</span><br><span>+\TIMO</span><br><span>+</span><br><span>+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span><br><span>+\TESTEXP { Random~floating~point~number }</span><br><span>+ {</span><br><span>+ \test:n { rand() }</span><br><span>+ }</span><br><span>+</span><br><span>+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span><br><span>+\TESTEXP { Random~integer }</span><br><span>+ {</span><br><span>+ \test:n { randint(2) }</span><br><span>+ \test:n { randint(-9999 9999 9999 9999, -9999 9999 9999 9998) }</span><br><span>+ \test:n { randint(-10 0000 0000, 10 0000 0000) }</span><br><span>+ \test:n { randint(9.9e15) }</span><br><span>+ \test:n { randint(-9999 9999 9999 9999, 9999 9999 9999 9999) }</span><br><span>+ }</span><br><span>+</span><br><span>+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span><br><span>+\TESTEXP { Random~bad~arguments }</span><br><span>+ {</span><br><span>+ \fp_to_tl:n { rand(,) } \NEWLINE</span><br><span>+ \fp_to_tl:n { rand(1,2,3) } \NEWLINE</span><br><span>+ \fp_to_tl:n { rand(nan) } \NEWLINE</span><br><span>+ \fp_to_tl:n { randint() } \NEWLINE</span><br><span>+ \fp_to_tl:n { randint(1) } \NEWLINE</span><br><span>+ \fp_to_tl:n { randint(1,0) } \NEWLINE</span><br><span>+ \fp_to_tl:n { randint(1e16) } \NEWLINE</span><br><span>+ \fp_to_tl:n { randint(9.9e15, 1e16) } \NEWLINE</span><br><span>+ \fp_to_tl:n { randint(-1e16, -1e15) } \NEWLINE</span><br><span>+ \fp_to_tl:n { randint(1,2,3) } \NEWLINE</span><br><span>+ \fp_to_tl:n { randint(nan) } \NEWLINE</span><br><span>+ \fp_to_tl:n { randint(inf) } \NEWLINE</span><br><span>+ \fp_to_tl:n { randint(nan,0) } \NEWLINE</span><br><span>+ \fp_to_tl:n { randint(inf,0) } \NEWLINE</span><br><span>+ }</span><br><span>+</span><br><span>+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span><br><span>+\END</span><br><span></span><br><span></span><br><span>Property changes on: trunk/l3kernel/testfiles/m3fp-rand001.lvt</span><br><span>___________________________________________________________________</span><br><span>Added: svn:eol-style</span><br><span> + native</span><br><span></span><br><span>Added: trunk/l3kernel/testfiles/m3fp-rand001.ptex.tlg</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/testfiles/m3fp-rand001.ptex.tlg (rev 0)</span><br><span>+++ trunk/l3kernel/testfiles/m3fp-rand001.ptex.tlg 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -0,0 +1,211 @@</span><br><span>+This is a generated file for the LaTeX (2e + expl3) validation system.</span><br><span>+Don't change this file in any respect.</span><br><span>+Author: Bruno Le Floch</span><br><span>+============================================================</span><br><span>+TEST 1: Random floating point number</span><br><span>+============================================================</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+nan, </span><br><span>+============================================================</span><br><span>+============================================================</span><br><span>+TEST 2: Random integer</span><br><span>+============================================================</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+nan, nan, nan, nan, nan, </span><br><span>+============================================================</span><br><span>+============================================================</span><br><span>+TEST 3: Random bad arguments</span><br><span>+============================================================</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ rand() expects between 0 and 0 arguments.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ rand() expects between 0 and 0 arguments.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ randint() expects between 1 and 2 arguments.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(1, 0)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(1, 1e16)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(9900000000000000, 1e16)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(-1e16, -1000000000000000)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ randint() expects between 1 and 2 arguments.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(1, nan)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(1, inf)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(nan, 0)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(inf, 0)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+============================================================</span><br><span></span><br><span></span><br><span>Property changes on: trunk/l3kernel/testfiles/m3fp-rand001.ptex.tlg</span><br><span>___________________________________________________________________</span><br><span>Added: svn:eol-style</span><br><span> + native</span><br><span></span><br><span>Added: trunk/l3kernel/testfiles/m3fp-rand001.tlg</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/testfiles/m3fp-rand001.tlg (rev 0)</span><br><span>+++ trunk/l3kernel/testfiles/m3fp-rand001.tlg 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -0,0 +1,167 @@</span><br><span>+This is a generated file for the LaTeX (2e + expl3) validation system.</span><br><span>+Don't change this file in any respect.</span><br><span>+Author: Bruno Le Floch</span><br><span>+============================================================</span><br><span>+TEST 1: Random floating point number</span><br><span>+============================================================</span><br><span>+0.2407420072402611</span><br><span>+0.3515320854381432</span><br><span>+0.5533095157403602</span><br><span>+0.0660146332110129</span><br><span>+0.5852169352589155</span><br><span>+============================================================</span><br><span>+============================================================</span><br><span>+TEST 2: Random integer</span><br><span>+============================================================</span><br><span>+1</span><br><span>+2</span><br><span>+2</span><br><span>+2</span><br><span>+1</span><br><span>+-9999999999999999</span><br><span>+-9999999999999998</span><br><span>+-9999999999999998</span><br><span>+-9999999999999999</span><br><span>+-9999999999999999</span><br><span>+437063568</span><br><span>+-666106306</span><br><span>+215291590</span><br><span>+364170477</span><br><span>+-276943944</span><br><span>+8769999775679512</span><br><span>+8833715394274005</span><br><span>+38558588213314</span><br><span>+5288608244773258</span><br><span>+8167384417467195</span><br><span>+-5008926051050742</span><br><span>+-6655967122213220</span><br><span>+7529164776533466</span><br><span>+2488672346419615</span><br><span>+9084896187831551</span><br><span>+============================================================</span><br><span>+============================================================</span><br><span>+TEST 3: Random bad arguments</span><br><span>+============================================================</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ rand() expects between 0 and 0 arguments.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ rand() expects between 0 and 0 arguments.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ randint() expects between 1 and 2 arguments.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(1, 0)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(1, 1e16)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(9900000000000000, 1e16)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(-1e16, -1000000000000000)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ randint() expects between 1 and 2 arguments.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(1, nan)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(1, inf)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(nan, 0)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(inf, 0)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+0.5455874475799493</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+1</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+============================================================</span><br><span></span><br><span></span><br><span>Property changes on: trunk/l3kernel/testfiles/m3fp-rand001.tlg</span><br><span>___________________________________________________________________</span><br><span>Added: svn:eol-style</span><br><span> + native</span><br><span></span><br><span>Added: trunk/l3kernel/testfiles/m3fp-rand001.uptex.tlg</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/testfiles/m3fp-rand001.uptex.tlg (rev 0)</span><br><span>+++ trunk/l3kernel/testfiles/m3fp-rand001.uptex.tlg 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -0,0 +1,211 @@</span><br><span>+This is a generated file for the LaTeX (2e + expl3) validation system.</span><br><span>+Don't change this file in any respect.</span><br><span>+Author: Bruno Le Floch</span><br><span>+============================================================</span><br><span>+TEST 1: Random floating point number</span><br><span>+============================================================</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+nan, </span><br><span>+============================================================</span><br><span>+============================================================</span><br><span>+TEST 2: Random integer</span><br><span>+============================================================</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+nan, nan, nan, nan, nan, </span><br><span>+============================================================</span><br><span>+============================================================</span><br><span>+TEST 3: Random bad arguments</span><br><span>+============================================================</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ rand() expects between 0 and 0 arguments.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ rand() expects between 0 and 0 arguments.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ randint() expects between 1 and 2 arguments.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(1, 0)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(1, 1e16)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(9900000000000000, 1e16)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(-1e16, -1000000000000000)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ randint() expects between 1 and 2 arguments.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(1, nan)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(1, inf)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(nan, 0)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(inf, 0)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+============================================================</span><br><span></span><br><span></span><br><span>Property changes on: trunk/l3kernel/testfiles/m3fp-rand001.uptex.tlg</span><br><span>___________________________________________________________________</span><br><span>Added: svn:eol-style</span><br><span> + native</span><br><span></span><br><span>Added: trunk/l3kernel/testfiles/m3fp-rand001.xetex.tlg</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/testfiles/m3fp-rand001.xetex.tlg (rev 0)</span><br><span>+++ trunk/l3kernel/testfiles/m3fp-rand001.xetex.tlg 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -0,0 +1,211 @@</span><br><span>+This is a generated file for the LaTeX (2e + expl3) validation system.</span><br><span>+Don't change this file in any respect.</span><br><span>+Author: Bruno Le Floch</span><br><span>+============================================================</span><br><span>+TEST 1: Random floating point number</span><br><span>+============================================================</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+nan, </span><br><span>+============================================================</span><br><span>+============================================================</span><br><span>+TEST 2: Random integer</span><br><span>+============================================================</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+nan, nan, nan, nan, nan, </span><br><span>+============================================================</span><br><span>+============================================================</span><br><span>+TEST 3: Random bad arguments</span><br><span>+============================================================</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ rand() expects between 0 and 0 arguments.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ rand() expects between 0 and 0 arguments.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ randint() expects between 1 and 2 arguments.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Random numbers unavailable</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(1, 0)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(1, 1e16)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(9900000000000000, 1e16)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(-1e16, -1000000000000000)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ randint() expects between 1 and 2 arguments.</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(1, nan)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(1, inf)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(nan, 0)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+! Undefined control sequence.</span><br><span>+<argument> \LaTeX3 error: </span><br><span>+ Invalid operation randint(inf, 0)</span><br><span>+l. ... }</span><br><span>+The control sequence at the end of the top line</span><br><span>+of your error message was never \def'ed. If you have</span><br><span>+misspelled it (e.g., `\hobx'), type `I' and the correct</span><br><span>+spelling (e.g., `I\hbox'). Otherwise just continue,</span><br><span>+and I'll forget about whatever was undefined.</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+nan</span><br><span>+============================================================</span><br><span></span><br><span></span><br><span>Property changes on: trunk/l3kernel/testfiles/m3fp-rand001.xetex.tlg</span><br><span>___________________________________________________________________</span><br><span>Added: svn:eol-style</span><br><span> + native</span><br><span></span><br><span>Modified: trunk/l3kernel/testfiles/m3fp-round002.tlg</span><br><span>===================================================================</span><br><span>--- trunk/l3kernel/testfiles/m3fp-round002.tlg 2016-11-19 00:43:44 UTC (rev 6749)</span><br><span>+++ trunk/l3kernel/testfiles/m3fp-round002.tlg 2016-11-21 01:24:26 UTC (rev 6750)</span><br><span>@@ -6,7 +6,7 @@</span><br><span> ============================================================</span><br><span> ! Undefined control sequence.</span><br><span> <argument> \LaTeX3 error: </span><br><span>- Missing number before ')'.</span><br><span>+ round() expects between 1 and 3 arguments.</span><br><span> l. ... }</span><br><span> The control sequence at the end of the top line</span><br><span> of your error message was never \def'ed. If you have</span><br><span>@@ -51,7 +51,7 @@</span><br><span> and I'll forget about whatever was undefined.</span><br><span> ! Undefined control sequence.</span><br><span> <argument> \LaTeX3 error: </span><br><span>- Missing number before ')'.</span><br><span>+ trunc() expects between 1 and 2 arguments.</span><br><span> l. ... }</span><br><span> The control sequence at the end of the top line</span><br><span> of your error message was never \def'ed. If you have</span><br><span>@@ -78,7 +78,7 @@</span><br><span> and I'll forget about whatever was undefined.</span><br><span> ! Undefined control sequence.</span><br><span> <argument> \LaTeX3 error: </span><br><span>- Missing number before ')'.</span><br><span>+ ceil() expects between 1 and 2 arguments.</span><br><span> l. ... }</span><br><span> The control sequence at the end of the top line</span><br><span> of your error message was never \def'ed. If you have</span><br><span>@@ -105,7 +105,7 @@</span><br><span> and I'll forget about whatever was undefined.</span><br><span> ! Undefined control sequence.</span><br><span> <argument> \LaTeX3 error: </span><br><span>- Missing number before ')'.</span><br><span>+ floor() expects between 1 and 2 arguments.</span><br><span> l. ... }</span><br><span> The control sequence at the end of the top line</span><br><span> of your error message was never \def'ed. If you have</span><br><span></span><br></div></blockquote></div></body></html>