[pstricks] Re: state of the random generator

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Thu Oct 7 18:08:43 CEST 2004


jmpapy wrote:
> Herbert, in the piece of code :
> \pstVerb{
> rrand srand % initializes the random generator
> }
> 
> you initializes the random generator. When I LaTeX the document I always 
> obtain the same sequence. Therefore I conclude that I start with the 
> same initial state every time. This point is OK to me.
> 
> But in order to obtain a different sequence I would want to manually set 
> another initial state. How can I proceed ?

you can choose any integer here

12345 srand

Herbert



-- 
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