ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Frans Goddijn" <frans@goddijn.com>
Subject: Re: Random repeat?
Date: Mon, 10 Sep 2001 10:47:58 +0200	[thread overview]
Message-ID: <002301c139d7$8919b600$6501a8c0@lap> (raw)
In-Reply-To: <5.1.0.14.0.20010910093259.00aa5240@public.uni-hamburg.de>

Thanks Eckhart!

But where in the graphics should I put the "randomseed" info?

the following won't work, halting the compile operation at the mention of
randomseed:

\startreusableMPgraphic{omcirkeld}
   draw fulldiamond xyscaled (OverlayWidth,OverlayHeight)
   randomseed:=2022
     randomized (30*OverlayLineWidth)
     withpen pencircle scaled OverlayLineWidth
     withcolor OverlayLineColor ;
  path b ; b := boundingbox currentpicture ;
  setbounds currentpicture to b enlarged 10pt ;
\stopreusableMPgraphic

----- Original Message -----
From: Eckhart Guthöhrlein <e_w_g@t-online.de>

> Have a look in your xxx-mpgraph.log after the
> run with the nice result, there you will find
> a line
>
> {randomseed:=...}
>
> assigning some value initializing mp's randomizer.
> Note this value, e.g. 292, and then say
>
> randomseed:=292
>
> in your graphics, and the results will always be
> identically random :-)


  reply	other threads:[~2001-09-10  8:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-10  7:33 Eckhart Guthöhrlein
2001-09-10  8:47 ` Frans Goddijn [this message]
2001-09-10 10:37   ` Eckhart Guthöhrlein
2001-09-10 11:51     ` Frans Goddijn
2001-09-10 11:14   ` Hans Hagen
2001-09-10 11:15 ` Hans Hagen
2001-09-10 12:06   ` Frans Goddijn
  -- strict thread matches above, loose matches on Subject: below --
2001-09-09 18:54 Frans Goddijn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='002301c139d7$8919b600$6501a8c0@lap' \
    --to=frans@goddijn.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).