diff --git a/layout.sty b/layout.sty
index d2f99f0f510d65613d2f8133d4155c2b6a7f65f6..44b428d30867e1d9012ae79932312bc93fa6938b 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}}%