On 10/01/19 11:50 AM, Henri Menke wrote:
> Dear list,
>
> To set the random seed of the MP random number generator I have to use
> the TeX command \setrandomseed. I can't do it from the Lua level,
> because tex.randomseed is read-only and tex.setrandomseed is nil.
> Could you please expose this primitive in Lua?
I tried to work around this using
\directlua{
token.create("setrandomseed")
token.create(string.byte("1"))
token.expand()
print(tex.randomseed)
}
but I only get ! Undefined control sequence.
>
> Kind regards, Henri
>