From 4da7df54d423e761392e8c3569b83baeeee96269 Mon Sep 17 00:00:00 2001 From: Malin Freeborn <malinfreeborn@posteo.net> Date: Sat, 4 Feb 2023 03:48:29 +0100 Subject: [PATCH] remove old \random command --- layout.sty | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/layout.sty b/layout.sty index d2f99f0f..44b428d3 100644 --- a/layout.sty +++ b/layout.sty @@ -820,25 +820,6 @@ Roll & Result \\ \fi } -\newcounter{random} -\setcounter{random}{1} -\newcounter{increment} -\setcounter{increment}{1} - -\newcommand{\random}{ - \addtocounter{random}{\value{page}} - \multiply\value{random} by \value{chapter}\addtocounter{random}{\value{increment}} - \whileboolexpr{ - test {\ifnumcomp{\value{random}}{>}{100}} - } - {\addtocounter{random}{-100}} - \whileboolexpr{ - test {\ifnumcomp{\value{random}}{>}{10}} - } - {\addtocounter{random}{-10}} - \addtocounter{increment}{1} -} - \newcommand{\randomtwo}{% \ifnumcomp{\value{r2}}{>}{1}{\setcounter{r2}{1}}{\addtocounter{r2}{1}}% \setcounter{enc}{\value{r2}}% -- GitLab