Hi again,
Many thanks to Hans and Hans and Henri.
The solution (going to low level) provided by Hans works fine.
Best
Thierry
Le Monday 23 Aug 2021 à 17:13:00 (+0200), Hans Hagen a écrit :
> On 8/23/2021 4:46 PM, Thierry Horsin via ntg-context wrote:
> > Hi everybody.
> >
> > I wonder how does
On 8/23/2021 5:24 PM, Hans van der Meer via ntg-context wrote:
I guess the underlying library calls are from Lua5.4? Then it is perhaps
useful to know that between 5.3 and 5.4 there is mentioned a new
implementation for math.random. Perhaps it changes the sequence of
random values generated? So
On Mon, 2021-08-23 at 17:24 +0200, Hans van der Meer via ntg-context
wrote:
> I guess the underlying library calls are from Lua5.4? Then it is
> perhaps useful to know that between 5.3 and 5.4 there is mentioned a
> new implementation for math.random. Perhaps it changes the sequence of
> random val
I guess the underlying library calls are from Lua5.4? Then it is perhaps useful
to know that between 5.3 and 5.4 there is mentioned a new implementation for
math.random. Perhaps it changes the sequence of random values generated?
Someone who knows?
dr. Hans van der Meer
> On 23 Aug 2021, at 1
On Mon, 2021-08-23 at 16:46 +0200, Thierry Horsin via ntg-context
wrote:
> Hi everybody.
>
> I wonder how does math.random() work in context. I found that this
> subject was discussed more than ten years ago by Otared and Taco and
> Thomas. It is clear to me how to obtain new results upon typesett
On 8/23/2021 4:46 PM, Thierry Horsin via ntg-context wrote:
Hi everybody.
I wonder how does math.random() work in context. I found that this subject was
discussed more than ten years ago by Otared and Taco and Thomas. It is clear to
me how to obtain new results upon typesetting the same file b
Hi everybody.
I wonder how does math.random() work in context. I found that this subject was
discussed more than ten years ago by Otared and Taco and Thomas. It is clear to
me how to obtain new results upon typesetting the same file by changing the
value of math.randomseed (with os.time()).
If
Thomas and Taco: thanks to both of you for your insight. I overlooked
the function math.randomseed() in Lua, and my question was mainly out
of curioisty: in practive one doesn't need to reset the random seed,
as Taco points out.
However I couldn't find the right usage of the command «
\ge
On Oct 25, 2009, at 9:26 AM, Taco Hoekwater wrote:
Otared KAVIAN wrote:
Indeed I guess that this is due to the random seed used by LuaTeX:
is it
possible to force a new random seed upon each typesetting?
The randomseed is set by context, and saved between consecutive runs
of
the same fil
Otared KAVIAN wrote:
Indeed I guess that this is due to the random seed used by LuaTeX: is it
possible to force a new random seed upon each typesetting?
The randomseed is set by context, and saved between consecutive runs of
the same file. Normally, this is what you would want: just imagine wh
Hi all,
This is a curiosity question about the function math.random coming
from Lua and used in mkiv:
if I typeset the following test file in mkiv, no matter when nor how
many times, the sequence of numbers which are output are the same…
%%% begin test-random.tex
\starttext
\dorecurse{25}
Hi all,
This is a curiosity question about the function math.random coming from Lua
and used in mkiv:
if I typeset the following test file in mkiv, no matter when nor how many
times, the sequence of numbers which are output are the same…
%%% begin test-random.tex
\starttext
\dorecurse{25}{%
\ct
12 matches
Mail list logo