texlive[67335] Master/texmf-dist: counterz

commits+karl at tug.org commits+karl at tug.org
Sun Jun 11 22:53:38 CEST 2023


Revision: 67335
          http://tug.org/svn/texlive?view=revision&revision=67335
Author:   karl
Date:     2023-06-11 22:53:37 +0200 (Sun, 11 Jun 2023)
Log Message:
-----------
counterz

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/counterz/README.txt
    trunk/Master/texmf-dist/doc/latex/counterz/counterz.pdf
    trunk/Master/texmf-dist/source/latex/counterz/counterz.dtx
    trunk/Master/texmf-dist/source/latex/counterz/counterz.ins
    trunk/Master/texmf-dist/tex/latex/counterz/counterz.sty

Modified: trunk/Master/texmf-dist/doc/latex/counterz/README.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/counterz/README.txt	2023-06-11 20:42:40 UTC (rev 67334)
+++ trunk/Master/texmf-dist/doc/latex/counterz/README.txt	2023-06-11 20:53:37 UTC (rev 67335)
@@ -1,7 +1,7 @@
 
 
 ----------------------------------------------------------------------
-`counterz' --- 2023/05/30 Version 1.1.0
+`counterz' --- 2023/06/05 Version 1.1.1
 
 Copyright (C) 2023 by Christopher McClain
 E-mail: christopher.mcclain at mail.wvu.edu

Modified: trunk/Master/texmf-dist/doc/latex/counterz/counterz.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/counterz/counterz.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/counterz/counterz.dtx	2023-06-11 20:42:40 UTC (rev 67334)
+++ trunk/Master/texmf-dist/source/latex/counterz/counterz.dtx	2023-06-11 20:53:37 UTC (rev 67335)
@@ -7,7 +7,7 @@
 
 %<*readme>
 ----------------------------------------------------------------------
-`counterz' --- 2023/05/30 Version 1.1.0
+`counterz' --- 2023/06/05 Version 1.1.1
 
 Copyright (C) 2023 by Christopher McClain
 E-mail: christopher.mcclain at mail.wvu.edu
@@ -38,7 +38,7 @@
 
 \preamble
 ----------------------------------------------------------------------
-`counterz' --- 2023/05/30 Version 1.1.0 Additional tools for counters
+`counterz' --- 2023/06/05 Version 1.1.1 Additional tools for counters
 E-mail: christopher.mcclain at mail.wvu.edu
 Released under the LaTeX Project Public License v1.3c or later
 See https://www.latex-project.org/lppl.txt
@@ -138,6 +138,7 @@
 %
 %\changes{v1.0.0}{2023/05/19}{First public release}
 %\changes{v1.1.0}{2023/05/30}{New and revised commands and error reports}
+%\changes{v1.1.1}{2023/06/05}{Bug fixes}
 %
 %
 %\begin{abstract}
@@ -148,9 +149,7 @@
 % random counters and save such counter values for future typesetting. 
 %\end{abstract}
 %
-%\begin{multicols}{2}
-%  \tableofcontents
-%\end{multicols}
+%\tableofcontents
 %
 %\section{Introduction}
 %
@@ -687,7 +686,18 @@
 %
 %\subsection{Random Counters}
 %
-% We first define random versions of \cs{setcounter} and \cs{addtocounter}.
+% In order to effectively manage the options of randomizing counter values or
+%\DescribeMacro{\randomizectr}
+% reusing counter values, the commands \cs{randomizectr} and \cs{norandomizectr}
+% are used to toggle an internal boolean variable. The internal boolean
+%\DescribeMacro{\norandomizectr}
+% is initialized as TRUE when the \textsf{counterz} package is loaded. A
+% conditional command \cs{ifrandomizectr}\marg{foo}\marg{bar} executes
+%\DescribeMacro{\ifrandomizectr}
+% \meta{foo} when the boolean is TRUE and otherwise executes \meta{bar}.
+%
+% We next define random versions of \cs{setcounter} and \cs{addtocounter}.
+% These commands will only execute when the document is set to randomize.
 % The command \cs{randsetcounter}\marg{counter}\marg{min}\marg{max} assigns
 %\DescribeMacro{\randsetcounter}
 % to \meta{counter} a random integer value between \meta{min} and \meta{max}.
@@ -699,10 +709,11 @@
 % \meta{counter} a random integer value between \meta{min} and \meta{max}.
 %\DescribeMacro{\xrandaddtocounter}
 % \cs{xrandaddtocounter} is a prefix version of \cs{randaddtocounter}.
-% The following code may be used to produce an expression in the form
-% $ax+b$, where $a$ and $b$ are random integers between $-10$ and $10$:
+% The following code produces an expression in the form $ax+b$, where $a$
+% and $b$ are random integers between $-10$ and $10$:
 %
 %\begin{verbatim}
+%\randomizectr
 %\xprovidecounter{a}
 %\xprovidecounter{b}
 %\xrandsetcounter{a}{-10}{10}
@@ -711,7 +722,7 @@
 %\end{verbatim}
 %
 % \noindent
-% Organized in the following table are sixty instances of output that are
+% Organized in the following table are fifty instances of output that are
 % randomly generated by the typesetting of this document:
 %
 % \bigskip
@@ -718,7 +729,7 @@
 %\noindent
 %\xprovidecounter{a}
 %\xprovidecounter{b}
-%\begin{tabular}{rrrrrr}
+%\begin{tabular}{rrrrr}
 %\xrandsetcounter{a}{-10}{10}
 %\xrandsetcounter{b}{-10}{10}
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
@@ -733,9 +744,6 @@
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
 %\xrandsetcounter{a}{-10}{10}
 %\xrandsetcounter{b}{-10}{10}
-%$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
-%\xrandsetcounter{a}{-10}{10}
-%\xrandsetcounter{b}{-10}{10}
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ \\
 %\xrandsetcounter{a}{-10}{10}
 %\xrandsetcounter{b}{-10}{10}
@@ -751,9 +759,6 @@
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
 %\xrandsetcounter{a}{-10}{10}
 %\xrandsetcounter{b}{-10}{10}
-%$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
-%\xrandsetcounter{a}{-10}{10}
-%\xrandsetcounter{b}{-10}{10}
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ \\
 %\xrandsetcounter{a}{-10}{10}
 %\xrandsetcounter{b}{-10}{10}
@@ -769,9 +774,6 @@
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
 %\xrandsetcounter{a}{-10}{10}
 %\xrandsetcounter{b}{-10}{10}
-%$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
-%\xrandsetcounter{a}{-10}{10}
-%\xrandsetcounter{b}{-10}{10}
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ \\
 %\xrandsetcounter{a}{-10}{10}
 %\xrandsetcounter{b}{-10}{10}
@@ -787,9 +789,6 @@
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
 %\xrandsetcounter{a}{-10}{10}
 %\xrandsetcounter{b}{-10}{10}
-%$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
-%\xrandsetcounter{a}{-10}{10}
-%\xrandsetcounter{b}{-10}{10}
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ \\
 %\xrandsetcounter{a}{-10}{10}
 %\xrandsetcounter{b}{-10}{10}
@@ -805,9 +804,6 @@
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
 %\xrandsetcounter{a}{-10}{10}
 %\xrandsetcounter{b}{-10}{10}
-%$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
-%\xrandsetcounter{a}{-10}{10}
-%\xrandsetcounter{b}{-10}{10}
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ \\
 %\xrandsetcounter{a}{-10}{10}
 %\xrandsetcounter{b}{-10}{10}
@@ -823,9 +819,6 @@
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
 %\xrandsetcounter{a}{-10}{10}
 %\xrandsetcounter{b}{-10}{10}
-%$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
-%\xrandsetcounter{a}{-10}{10}
-%\xrandsetcounter{b}{-10}{10}
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ \\
 %\xrandsetcounter{a}{-10}{10}
 %\xrandsetcounter{b}{-10}{10}
@@ -841,9 +834,6 @@
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
 %\xrandsetcounter{a}{-10}{10}
 %\xrandsetcounter{b}{-10}{10}
-%$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
-%\xrandsetcounter{a}{-10}{10}
-%\xrandsetcounter{b}{-10}{10}
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ \\
 %\xrandsetcounter{a}{-10}{10}
 %\xrandsetcounter{b}{-10}{10}
@@ -859,9 +849,6 @@
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
 %\xrandsetcounter{a}{-10}{10}
 %\xrandsetcounter{b}{-10}{10}
-%$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
-%\xrandsetcounter{a}{-10}{10}
-%\xrandsetcounter{b}{-10}{10}
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ \\
 %\xrandsetcounter{a}{-10}{10}
 %\xrandsetcounter{b}{-10}{10}
@@ -877,9 +864,6 @@
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
 %\xrandsetcounter{a}{-10}{10}
 %\xrandsetcounter{b}{-10}{10}
-%$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
-%\xrandsetcounter{a}{-10}{10}
-%\xrandsetcounter{b}{-10}{10}
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ \\
 %\xrandsetcounter{a}{-10}{10}
 %\xrandsetcounter{b}{-10}{10}
@@ -895,23 +879,10 @@
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
 %\xrandsetcounter{a}{-10}{10}
 %\xrandsetcounter{b}{-10}{10}
-%$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ &
-%\xrandsetcounter{a}{-10}{10}
-%\xrandsetcounter{b}{-10}{10}
 %$\xcoef{a}\ifctrzero{a}{\xarabic{b}}{x \xsignednz{b}}$ \\
 %\end{tabular}
 %
 % \bigskip
-% In order to effectively manage the options of randomizing counter values or
-%\DescribeMacro{\randomizectr}
-% reusing counter values, the commands \cs{randomizectr} and \cs{norandomizectr}
-% are used to toggle an internal boolean variable. The internal boolean
-%\DescribeMacro{\norandomizectr}
-% is initialized as TRUE when the \textsf{counterz} package is loaded. A
-% conditional command \cs{ifrandomizectr}\marg{foo}\marg{bar} executes
-%\DescribeMacro{\ifrandomizectr}
-% \meta{foo} when the boolean is true and otherwise executes \meta{bar}.
-%
 % If our document contains randomly generated counters, but we wish to typeset
 % the document again without changing those values, then we need a way to save
 %\DescribeMacro{\opencountersfile}
@@ -1067,7 +1038,7 @@
 %    \begin{macrocode}
 %<*package>
 \ProvidesPackage{counterz}[%
-   2023/05/30 v1.1.0 Additional tools for counters
+   2023/06/05 v1.1.1 Additional tools for counters
 ]%
 \RequirePackage{etoolbox,makecmds}
 %    \end{macrocode}
@@ -1503,60 +1474,6 @@
 %
 %\subsection{Random Counters}
 %
-% The commands \cs{randsetcounter} and \cs{randaddtocounter} use the pdf\TeX\
-% primitive \cs{pdfuniformdeviate} to provide random versions of
-% \cs{setcounter} and \cs{addtocounter}. The commands \cs{xrandsetcounter} and
-% \cs{xrandaddtocounter} are prefix versions of \cs{randsetcounter} and
-% \cs{randaddtocounter}, respectively.
-%
-%\begin{macro}{\randsetcounter}
-%\changes{v1.1.0}{2023/05/30}{new}
-%\begin{macro}{\xrandsetcounter}
-%\changes{v1.1.0}{2023/05/30}{now based on a new \cs{randsetcounter}}
-%
-% \cs{randsetcounter}\marg{counter}\marg{min}\marg{max} assigns to
-% \meta{counter} a random integer value between \meta{min} and \meta{max}.
-%
-%    \begin{macrocode}
-\newcommand{\randsetcounter}[3]{%
-   \setcounter{#1}{%
-      \the \numexpr #2+\pdfuniformdeviate \numexpr #3-#2+1 \relax
-   }%
-}%
-\newcommand{\xrandsetcounter}[3]{%
-   \randsetcounter{\@counterz at counterprefix#1}{#2}{#3}
-}%
-%    \end{macrocode}
-%
-%\end{macro}
-%\end{macro}
-%
-%\begin{macro}{\randaddtocounter}
-%\changes{v1.1.0}{2023/05/30}{new}
-%\begin{macro}{\xrandaddtocounter}
-%\changes{v1.1.0}{2023/05/30}{now based on a new \cs{randaddtocounter}}
-%
-% \cs{randaddtocounter}\marg{counter}\marg{min}\marg{max} adds to \meta{counter}
-% a random integer value between \meta{min} and \meta{max}.
-%
-%    \begin{macrocode}
-\newcommand{\randaddtocounter}[3]{%
-   \addtocounter{#1}{%
-      \the \numexpr #2+\pdfuniformdeviate \numexpr #3-#2+1 \relax
-   }%
-}%
-\newcommand{\xrandaddtocounter}[3]{%
-   \randaddtocounter{\@counterz at counterprefix#1}{#2}{#3}
-}%
-%    \end{macrocode}
-%
-%\end{macro}
-%\end{macro}
-% The following commands are designed to provide a means by which authors can
-% generate random values for counters but also preserve those values for future
-% typesettings. This is accomplished by storing counters and their values in an
-% external file and then inputting the file before a subsequent typesetting.
-%
 %\begin{macro}{\randomizectr}
 %\begin{macro}{\norandomizectr}
 %
@@ -1579,7 +1496,7 @@
 %\begin{macro}{\ifrandomizectr}
 %
 % \cs{ifrandomizectr}\marg{foo}\marg{bar} executes \meta{foo} if the boolean
-% \textit{@counterz at random} is true and otherwise executes \meta{bar}.
+% \textit{@counterz at random} is TRUE and otherwise executes \meta{bar}.
 %
 %    \begin{macrocode}
 \newcommand{\ifrandomizectr}[2]{%
@@ -1611,6 +1528,73 @@
 %
 %\end{macro}
 %
+% The commands \cs{randsetcounter} and \cs{randaddtocounter} use the pdf\TeX\
+% primitive \cs{pdfuniformdeviate} to provide random versions of
+% \cs{setcounter} and \cs{addtocounter}. The commands \cs{xrandsetcounter} and
+% \cs{xrandaddtocounter} are prefix versions of \cs{randsetcounter} and
+% \cs{randaddtocounter}, respectively. Each of these four commands will generate
+% random counter values only when the boolean \textit{@counterz at random} is TRUE.
+%
+%\begin{macro}{\randsetcounter}
+%\changes{v1.1.0}{2023/05/30}{new}
+%\changes{v1.1.1}{2023/06/05}{bug fix}
+%\begin{macro}{\xrandsetcounter}
+%\changes{v1.1.0}{2023/05/30}{now based on a new \cs{randsetcounter}}
+%
+% \cs{randsetcounter}\marg{counter}\marg{min}\marg{max} assigns to
+% \meta{counter} a random integer value between \meta{min} and \meta{max},
+% if \textit{@counterz at random} is TRUE.
+%
+%    \begin{macrocode}
+\newcommand{\randsetcounter}[3]{%
+   \ifrandomizectr{%
+      \setcounter{#1}{%
+         \the \numexpr #2+\pdfuniformdeviate \numexpr #3-#2+1 \relax
+      }%
+   }{%
+      % Do Nothing
+   }%
+}%
+\newcommand{\xrandsetcounter}[3]{%
+   \randsetcounter{\@counterz at counterprefix#1}{#2}{#3}
+}%
+%    \end{macrocode}
+%
+%\end{macro}
+%\end{macro}
+%
+%\begin{macro}{\randaddtocounter}
+%\changes{v1.1.0}{2023/05/30}{new}
+%\changes{v1.1.1}{2023/06/05}{bug fix}
+%\begin{macro}{\xrandaddtocounter}
+%\changes{v1.1.0}{2023/05/30}{now based on a new \cs{randaddtocounter}}
+%
+% \cs{randaddtocounter}\marg{counter}\marg{min}\marg{max} adds to \meta{counter}
+% a random integer value between \meta{min} and \meta{max},
+% if \textit{@counterz at random} is TRUE.
+%
+%    \begin{macrocode}
+\newcommand{\randaddtocounter}[3]{%
+   \ifrandomizectr{%
+      \addtocounter{#1}{%
+         \the \numexpr #2+\pdfuniformdeviate \numexpr #3-#2+1 \relax
+      }%
+   }{%
+      % Do Nothing
+   }%
+}%
+\newcommand{\xrandaddtocounter}[3]{%
+   \randaddtocounter{\@counterz at counterprefix#1}{#2}{#3}
+}%
+%    \end{macrocode}
+%
+%\end{macro}
+%\end{macro}
+% The following commands are designed to provide a means by which authors can
+% generate random values for counters but also preserve those values for future
+% typesettings. This is accomplished by storing counters and their values in an
+% external file and then inputting the file before a subsequent typesetting.
+%
 %\begin{macro}{\opencountersfile}
 %\changes{v1.1.0}{2023/05/30}{new error reports}
 %
@@ -1743,7 +1727,7 @@
 %
 % \cs{randprovidecounter}\marg{counter}\marg{min}\marg{max} creates
 % \meta{counter} if it does not already exist, and if the boolean
-% \textit{@counterz at random} is true then \meta{counter} is assigned a
+% \textit{@counterz at random} is TRUE then \meta{counter} is assigned a
 % random integer value between \meta{min} and \meta{max} and then saved.
 %
 %    \begin{macrocode}
@@ -1772,7 +1756,7 @@
 %
 % \cs{xrandprovidecounter}\marg{counter}\marg{min}\marg{max} creates
 % \meta{counter} if it does not already exist, and if the boolean
-% \textit{@counterz at random} is true then \meta{counter} is assigned a
+% \textit{@counterz at random} is TRUE then \meta{counter} is assigned a
 % random integer value between \meta{min} and \meta{max} and then saved.
 %
 %    \begin{macrocode}

Modified: trunk/Master/texmf-dist/source/latex/counterz/counterz.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/counterz/counterz.ins	2023-06-11 20:42:40 UTC (rev 67334)
+++ trunk/Master/texmf-dist/source/latex/counterz/counterz.ins	2023-06-11 20:53:37 UTC (rev 67335)
@@ -6,7 +6,7 @@
 %%
 %% counterz.dtx  (with options: `install')
 %% ----------------------------------------------------------------------
-%% `counterz' --- 2023/05/30 Version 1.1.0 Additional tools for counters
+%% `counterz' --- 2023/06/05 Version 1.1.1 Additional tools for counters
 %% E-mail: christopher.mcclain at mail.wvu.edu
 %% Released under the LaTeX Project Public License v1.3c or later
 %% See https://www.latex-project.org/lppl.txt
@@ -22,7 +22,7 @@
 
 \preamble
 ----------------------------------------------------------------------
-`counterz' --- 2023/05/30 Version 1.1.0 Additional tools for counters
+`counterz' --- 2023/06/05 Version 1.1.1 Additional tools for counters
 E-mail: christopher.mcclain at mail.wvu.edu
 Released under the LaTeX Project Public License v1.3c or later
 See https://www.latex-project.org/lppl.txt

Modified: trunk/Master/texmf-dist/tex/latex/counterz/counterz.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/counterz/counterz.sty	2023-06-11 20:42:40 UTC (rev 67334)
+++ trunk/Master/texmf-dist/tex/latex/counterz/counterz.sty	2023-06-11 20:53:37 UTC (rev 67335)
@@ -6,7 +6,7 @@
 %%
 %% counterz.dtx  (with options: `package')
 %% ----------------------------------------------------------------------
-%% `counterz' --- 2023/05/30 Version 1.1.0 Additional tools for counters
+%% `counterz' --- 2023/06/05 Version 1.1.1 Additional tools for counters
 %% E-mail: christopher.mcclain at mail.wvu.edu
 %% Released under the LaTeX Project Public License v1.3c or later
 %% See https://www.latex-project.org/lppl.txt
@@ -21,7 +21,7 @@
 \NeedsTeXFormat{LaTeX2e}
 
 \ProvidesPackage{counterz}[%
-   2023/05/30 v1.1.0 Additional tools for counters
+   2023/06/05 v1.1.1 Additional tools for counters
 ]%
 \RequirePackage{etoolbox,makecmds}
 \newcommand{\@counterz at counterprefix}{}
@@ -145,22 +145,6 @@
 \newcommand{\xnegsignedcoef}[1]{%
    \xnegsignofcoef{#1} \xabsofcoef{#1}
 }%
-\newcommand{\randsetcounter}[3]{%
-   \setcounter{#1}{%
-      \the \numexpr #2+\pdfuniformdeviate \numexpr #3-#2+1 \relax
-   }%
-}%
-\newcommand{\xrandsetcounter}[3]{%
-   \randsetcounter{\@counterz at counterprefix#1}{#2}{#3}
-}%
-\newcommand{\randaddtocounter}[3]{%
-   \addtocounter{#1}{%
-      \the \numexpr #2+\pdfuniformdeviate \numexpr #3-#2+1 \relax
-   }%
-}%
-\newcommand{\xrandaddtocounter}[3]{%
-   \randaddtocounter{\@counterz at counterprefix#1}{#2}{#3}
-}%
 \newbool{@counterz at random}
 \booltrue{@counterz at random}
 \newcommand{\randomizectr}{\booltrue{@counterz at random}}
@@ -176,6 +160,30 @@
       \norandomizectr
    }%
 }%
+\newcommand{\randsetcounter}[3]{%
+   \ifrandomizectr{%
+      \setcounter{#1}{%
+         \the \numexpr #2+\pdfuniformdeviate \numexpr #3-#2+1 \relax
+      }%
+   }{%
+      % Do Nothing
+   }%
+}%
+\newcommand{\xrandsetcounter}[3]{%
+   \randsetcounter{\@counterz at counterprefix#1}{#2}{#3}
+}%
+\newcommand{\randaddtocounter}[3]{%
+   \ifrandomizectr{%
+      \addtocounter{#1}{%
+         \the \numexpr #2+\pdfuniformdeviate \numexpr #3-#2+1 \relax
+      }%
+   }{%
+      % Do Nothing
+   }%
+}%
+\newcommand{\xrandaddtocounter}[3]{%
+   \randaddtocounter{\@counterz at counterprefix#1}{#2}{#3}
+}%
 \newbool{@counterz at fileISopen}
 \boolfalse{@counterz at fileISopen}
 \newcommand{\opencountersfile}{%



More information about the tex-live-commits mailing list.