summaryrefslogtreecommitdiff
path: root/texmf-dist/doc/latex/rangen/randomLIP.tex
blob: 991703815095e0bca8bd91cdc32249ae73b93fef (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
\documentclass{article}
\usepackage[tight,designv]{web}
\usepackage{insdljs}
\usepackage[testmode,quiet]{rangen}
%\usepackage[seed=30,quiet]{rangen}

\parindent0pt\parskip6pt

\begin{document}

\RandomL{\a}{1,-1}$\texttt{\string\a}=\a, \cfmt\a x$

\RandomP[index=5]{\a}{1,x,x^2,x^3}$\a$

\RandomI{\indx}{5}
\RandomP[index=\indx]{\q}{1+16,\cos(\pi),\pi\sin(\pi),\frac{d}{dx}\frac{1}{2}x^2,{\int \cos(x)\,dx}}

$\displaystyle\q$

\RandomI{\i}{2}\i
\RandomP[index=\i]{\q}{1+16, \frac{d}{dx}\frac{1}{2}x^2}
\RandomP[index=\i]{\a}{17,x}

$ \q = \a $

\RandomP{\q}{1+16,\frac{d}{dx}\frac{1}{2}x^2}
\RandomP[index=\iOf\q]{\a}{17,x}

$\displaystyle\q = \a $

\RandomI{\i}{6}RandomI=\i

\RandomL[index=1]{\a}{17,\rPI,3/4,\rE,88,1/2}\a\quad index=\iOf{\a}

\RandomL[index=\i]{\a}{17,\rPI,3/4,\rE,88,1/2}\a\quad index=\iOf{\a}

\RandomL{\a}{17,\rPI,3/4,\rE,88,1/2}\a\quad index=\iOf{\a}

In practice, \verb!\RandomI! can be used to select one of n problems. Here, we have
selected the
\RandomI{\i}{6}
\ifcase\i\relax\or
first\or
second\or
third\or
fourth\or
fifth\or
sixth\fi\space problem.




\end{document}