From: h h extern <pragma@wxs.nl>
Subject: Re: \setupsystem[random]
Date: Sat, 27 Nov 2004 21:13:55 +0100 [thread overview]
Message-ID: <41A8E003.4040905@wxs.nl> (raw)
In-Reply-To: <41A72C9C.80504@creutzig.de>
Christopher Creutzig wrote:
> Salvete,
>
> the line
>
> \setupsystem[random=261113]
>
> causes an error for me:
>
> ./CDaufdruck.tex:10: Arithmetic overflow.
> \verynormalnextrandom ...al \multiply \randomi 31
> \global \advance
> \randomi ...
>
> \normalnextrandom ...alyear \verynormalnextrandom
> \egroup
> \nextrandom ->\bgroup \normalnextrandom
> \gdef \nextrandom {\ifcase
> \randomse...
> <argument> ...ormaltime =\@@svrandom ]\nextrandom
> \egroup
> \firstofoneargument #1->#1
>
> \dosetupsystem ...1]\setuprandomize [\@@svrandom ]
> \beforesplitstring
> \@@svre...
> ...
>
>
> ConTeXt ver: 2004.10.07 fmt: 2004.10.29 int: english mes: english
>
> regards,
> Christopher
we could consider changing 1440 by 2880 in the next code (in texexec)
my ($sec, $min) = gmtime;
my $RandomSeed = ($min * 60 + $sec) % 1440;
ideas welcome ...
Hans
PS. you can say: setupsystem[random=100]
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
next prev parent reply other threads:[~2004-11-27 20:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-26 13:16 \setupsystem[random] Christopher Creutzig
2004-11-27 20:13 ` h h extern [this message]
2004-11-29 12:15 ` \setupsystem[random] Christopher Creutzig
2004-11-29 13:50 ` \setupsystem[random] Hans Hagen
2004-11-29 15:41 ` \setupsystem[random] Christopher Creutzig
2004-11-29 16:11 ` \setupsystem[random] Hans Hagen
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=41A8E003.4040905@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/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).