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
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 -----------------------------------------------------------------
h h extern wrote:
PS. you can say: setupsystem[random=100]
I know. But I tried to use larger numbers, e.g., to copy the values of a previous run from the line systems : randomizer starts with 379377681 yet always get the above error. What is the reason for this line if not to copy the number into \setupsystem? rgeards, Christopher Creutzig
Christopher Creutzig wrote:
h h extern wrote:
PS. you can say: setupsystem[random=100]
I know. But I tried to use larger numbers, e.g., to copy the values of a previous run from the line
systems : randomizer starts with 379377681
yet always get the above error. What is the reason for this line if not to copy the number into \setupsystem?
this is why i sent the patch for texexec (1440 -> 2880) the problem is that the tex/mp randomizers are based on time and therefore too fragile (too little resolution) on fast machines; so i let texexec set the seed Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Hans Hagen wrote:
the problem is that the tex/mp randomizers are based on time and therefore too fragile (too little resolution) on fast machines; so i let texexec set the seed
So even in the case where the TeX code contains \setupsystem[seed=212], texexec does some additional calculations? (The error I got made me think that the number I entered was directly used in TeX calculations.) Christopher
Christopher Creutzig wrote:
Hans Hagen wrote:
the problem is that the tex/mp randomizers are based on time and therefore too fragile (too little resolution) on fast machines; so i let texexec set the seed
So even in the case where the TeX code contains \setupsystem[seed=212], texexec does some additional calculations? (The error I got made me think that the number I entered was directly used in TeX calculations.)
it does the calculation but the following setup does it again; this is why the texexec patch is needed (although i never ran into such large number side effects) Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (3)
-
Christopher Creutzig
-
h h extern
-
Hans Hagen