summaryrefslogtreecommitdiff
path: root/graphics/pgf/base/doc/text-en/pgfmanual-en-math-parsing.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-12-20 03:00:48 +0000
committerNorbert Preining <norbert@preining.info>2019-12-20 03:00:48 +0000
commit18d9ec0eba21e6b8c55cdd50afb91c56e02ce7bf (patch)
tree56de5f55a6575a68557d5a384f57e3e8566c536d /graphics/pgf/base/doc/text-en/pgfmanual-en-math-parsing.tex
parent3b24b0599bb35e1a3338fa33bfb24044a6125ba4 (diff)
CTAN sync 201912200300
Diffstat (limited to 'graphics/pgf/base/doc/text-en/pgfmanual-en-math-parsing.tex')
-rw-r--r--graphics/pgf/base/doc/text-en/pgfmanual-en-math-parsing.tex12
1 files changed, 6 insertions, 6 deletions
diff --git a/graphics/pgf/base/doc/text-en/pgfmanual-en-math-parsing.tex b/graphics/pgf/base/doc/text-en/pgfmanual-en-math-parsing.tex
index 4b3f793dad..9eaed9c975 100644
--- a/graphics/pgf/base/doc/text-en/pgfmanual-en-math-parsing.tex
+++ b/graphics/pgf/base/doc/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}
%