summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/rangen/examples/randomQ.tex
blob: ec2a9081a6f9cd3c609f0c27da889dbfefdbd925 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
\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}