From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/5580 Path: main.gmane.org!not-for-mail From: e_w_g@t-online.de (Eckhart =?iso-8859-1?Q?Guth=F6hrlein?=) Newsgroups: gmane.comp.tex.context Subject: Re: Random repeat? Date: Mon, 10 Sep 2001 12:37:58 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.0.20010910122706.00aa61f0@public.uni-hamburg.de> References: <5.1.0.14.0.20010910093259.00aa5240@public.uni-hamburg.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035396162 2824 80.91.224.250 (23 Oct 2002 18:02:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:02:42 +0000 (UTC) Original-To: "Frans Goddijn" , "NTG-ConTeXt mailing list" In-Reply-To: <002301c139d7$8919b600$6501a8c0@lap> Xref: main.gmane.org gmane.comp.tex.context:5580 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:5580 At 10:47 10.09.2001 +0200, Frans Goddijn wrote: >But where in the graphics should I put the "randomseed" info? It is not used as a parameter for draw, make it a separate assignment. All subsequently generated random numbers will be identical for future mp runs. This might me a problem if you want it to affect only a single draw (do you?), then it would have to be a local assignment. Or you would have to assign it a new value after this single draw, randomly generated from another source, maybe passed from TeX. But I'm not that experienced with mp/context to present you a solution to this problem on the fly. Ah, however, except putting the randomseed assignment and the commands to be affected at the very end of your graphic. But if you need something like this, Hans will surely have a good idea. For this graphic, \startreusableMPgraphic{omcirkeld} randomseed:=2022; draw fulldiamond xyscaled (OverlayWidth,OverlayHeight) randomized (30*OverlayLineWidth) withpen pencircle scaled OverlayLineWidth withcolor OverlayLineColor ; path b ; b := boundingbox currentpicture ; setbounds currentpicture to b enlarged 10pt ; \stopreusableMPgraphic should do it. Eckhart