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}{%
\ctxlua{tex.print(math.random(110,150))}
\qquad
\ctxlua{tex.print(math.random(math.random(110,120),math.random(140,150)))}
\par}

\stoptext

%%% end test-random.tex

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?

Thanks for your attention: OK