[pstricks] problem with random number generation?

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Fri Nov 12 14:15:04 CET 2004


Goebel, Juergen, OPE26 wrote:
> Hi,
> 
> Please have a look at the following sample. The result
> isn't exactly what I've expected. There should be
> something wrong, but I can't see what it is. Your help
> would be appreciated.

choose psdot here

Herbert

\documentclass{scrartcl}
\usepackage{pstricks}
\SpecialCoor
\begin{document}
\psset{unit=5cm}
\begin{pspicture}(1,1)
   \psframe(1,1)
   \makeatletter
   \psdot[dotsize=1pt](!
     rrand srand                 % initializes the random generator
     1000 {
      rand 2147483647 div
      \pst at number\psxunit mul
      rand 2147483647 div
      \pst at number\psyunit mul
      1 0 360 arc fill
     } repeat
    stroke
    0 0)
    \makeatother
\end{pspicture}

\end{document}



-- 
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes




More information about the PSTricks mailing list