I would like to generate random questions based on a random integer input. I have tried he code from a site online and tweaked it so that it generates more than one random problem but evidently it does not generate random problems. In the enumerate, the same problem appears. Any insight into the matter will be highly appreciated.
\documentclass[letterpaper]{article}
\usepackage{amsmath,amssymb,enumitem}
\usepackage{lcg,calc}
\usepackage{tikz}
\reinitrand[first=1, last=10, counter=num] \rand
\reinitrand[first=2, last=20, counter=deno] \rand
\reinitrand[first=2, last=5, counter=coeff] \rand
\setcounter{num}{\value{coeff}*\value{num}}
\setcounter{deno}{\value{coeff}*\value{deno}}
\newcommand{\fracquestion}[1]{%
\foreach \i in {1,...,#1}
{
\item $\dfrac{\thenum}{\thedeno}$
}}
\begin{document}
\begin{enumerate}
\fracquestion{5}
\end{enumerate}
\end{document}


\a,\b,\c, and then$\a x^2 + \b x + \c$would be a randomly generated quadratic equation. I suspect that you are looking for something else.. If it is not related to thrust of this question (i.e., how to generate random numbers) it should probably be posted as a new question. – Peter Grill Jan 24 '12 at 15:59\pgfmathsetseed{\number\pdfrandomseed}. – Atcold Sep 06 '16 at 13:13