diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-math-parsing.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-math-parsing.tex | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-math-parsing.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-math-parsing.tex index 4b3f793dadf..9eaed9c975d 100644 --- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-math-parsing.tex +++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-math-parsing.tex @@ -274,7 +274,7 @@ For this, you can use the following commands: A typical use of this function is the following: % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{calc,quotes}}] \tikz{ \coordinate["$A$"] (A) at (2,2); \coordinate["$B$" below] (B) at (0,0); @@ -1189,7 +1189,7 @@ some notable exceptions. Generates a pseudo-random number between $0$ and $1$ with a uniform distribution. % -\begin{codeexample}[] +\begin{codeexample}[pre={\pgfmathsetseed{1}}] \foreach \x in {1,...,10}{\pgfmathparse{rnd}\pgfmathresult, } \end{codeexample} % @@ -1200,7 +1200,7 @@ some notable exceptions. Generates a pseudo-random number between $-1$ and $1$ with a uniform distribution. % -\begin{codeexample}[] +\begin{codeexample}[pre={\pgfmathsetseed{1}}] \foreach \x in {1,...,10}{\pgfmathparse{rand}\pgfmathresult, } \end{codeexample} % @@ -1215,15 +1215,15 @@ some notable exceptions. \mvar{x} and \mvar{y} is generated. If there are no arguments, the \pgfname{} command should be called as follows: |\pgfmathrandom{}|. % -\begin{codeexample}[] +\begin{codeexample}[pre={\pgfmathsetseed{1}}] \foreach \x in {1,...,10}{\pgfmathparse{random()}\pgfmathresult, } \end{codeexample} -\begin{codeexample}[] +\begin{codeexample}[pre={\pgfmathsetseed{1}}] \foreach \x in {1,...,10}{\pgfmathparse{random(100)}\pgfmathresult, } \end{codeexample} -\begin{codeexample}[] +\begin{codeexample}[pre={\pgfmathsetseed{1}}] \foreach \x in {1,...,10}{\pgfmathparse{random(232,762)}\pgfmathresult, } \end{codeexample} % |