[pstricks] Create a random path
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Tue Jan 26 18:40:49 CET 2010
Am 26.01.2010 18:11, schrieb Marco Daniel:
> But the following doesn't work:
>
> %%%%%
> GS<2>10 srand
> GS<2>==
> 0.5
> GS<1>5 srand
> GS<1>==
> -file-
> GS>20 srand
> GS>==
Marco,
it cannot work because there is nothing on the stack
for the == command.
"20 srand" takes the "20" from the stack and initializes the random
generator with this value.
20 srand
rand
==
will work
Herbert
> Error: /stackunderflow in --execute--
More information about the PSTricks
mailing list