On 5/15/21 2:42 PM, Mikael Sundqvist wrote:
Hi,
you could do something like this:
\startMPpage
for i = 0 upto 10:
drawarrow if uniformdeviate(1)<0.5: reverse fi ((0,0)--(2cm,0)) yshifted i*cm;
endfor;
\stopMPpage
/Mikael
Hi Mikael,
wonderful, thanks for the quick answer! Yes that works as intended!
Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________