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
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________