summaryrefslogtreecommitdiff
path: root/info/visualpstricks/Source/alea.tex
blob: 7e4cf69c70b4be9bc3bf803ce2b4c63e3905aa2a (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

\psset{unit=1cm,fillcolor=yellow,fillcolor=white}


\begin{center}
\begin{tabular}{|c|c|c|} \hline 
\multicolumn{3}{|c|}{\BSS{psRandom}\AC{\BS{}pspolygon(0,.5)(1,2)(3,2)(4,0)(2,.5)} \BSI{psRandom}{pstricks-add}  }\\ \hline
\begin{pspicture}(4,2.5)
\psRandom{\pspolygon(0,.5)(1,2)(3,2)(4,0)(2,.5)}
\end{pspicture}
&
\begin{pspicture}(4,2.5)
\psRandom(1,1)(2,2){\pspolygon(0,.5)(1,2)(3,2)(4,0)(2,.5)}
\end{pspicture}
&
\begin{pspicture}(4,2.5)
\psRandom(0,0)(4,2){\pspolygon(0,.5)(1,2)(3,2)(4,0)(2,.5)}
\end{pspicture} \\ \hline
\BS{psRandom}\AC{\BS{}pspolygon \dots }&
\BS{psRandom}{\red (1,1)(2,2)}\AC{\dots }&
\BS{psRandom}{\red (0,0)(4,2)}\AC{\dots }\\ \hline
\end{tabular}
\end{center}

\begin{center}
\begin{tabular}{|c|c|c|} \hline 
\multicolumn{3}{|c|}{\BS{psRandom}[{\red options}](0,0)(4,2)\AC{\BS{}pspolygon(0,.5)(1,2)(3,2)(4,0)(2,.5)}}\\ \hline
\begin{pspicture}(4,2.5)
\psRandom[randomPoints=100](0,0)(4,2){\pspolygon(0,.5)(1,2)(3,2)(4,0)(2,.5)}
\end{pspicture}
&
\begin{pspicture}(4,2.5)
\psRandom[color](0,0)(4,2){\pspolygon(0,.5)(1,2)(3,2)(4,0)(2,.5)}
\end{pspicture}
&
\begin{pspicture}(4,2.5)
\psRandom[dotstyle=+](0,0)(4,2){\pspolygon(0,.5)(1,2)(3,2)(4,0)(2,.5)}
\end{pspicture} \\ \hline
\RDD{randomPoints}=100 \RDI{randomPoints}{pstricks-add} &
\RDD{color}  \RDI{color}{pstricks-add}&
\RDD{dotstyle}=+  \RDI{dotstyle}{pstricks-add}
 \\ \hline  
{\blue \dft :  1000} & &   \\ \hline  
\end{tabular}
\end{center}