\documentclass{article}
\usepackage[dvipsone]{insdljs}
\usepackage[testmode,quiet]{rangen}


\parindent0pt\parskip6pt

\begin{document}

\RandomQ{\a}[16]{1/8}{3/7}$ 1/8 \le \a \le 3/7 $

\RandomQ{\b}[7]{\a}{15/16}$\a \le \b$

\RandomQ[ne={0,-1}]{\n}{-3}{2/3}$x^{\efmt\n}$


\defineQ{\a}{5}{3}\RandomQ{\b}[8]{\a*}{10}$ \a < \b $

\RandomQ{\a}[8]{1}{5}\RandomQ{\b}[8]{\a}{10}$ \a \le \b $

\RandomQ{\a}[8]{1}{5}\RandomQ{\b}[8]{1}{\a*}$ \a > \b $

\RandomQ{\a}[2]{1}{5}\RandomQ{\b}[8]{1}{\a}$ \a \ge \b $

\RandomQ{\a}[2]{1}{5}$\ifnum\typeOf\a=0\relax\cfmt\a\else(\cfmt\a)\fi x$

\end{document}
