Re: [NTG-context] How to print a random whole number between x and y?

2022-06-17 Thread Wolfgang Schuster via ntg-context
Joel via ntg-context schrieb am 17.06.2022 um 16:10: I was using this code for a long time in my document. I have a PDF with 10 pages, and this would randomly display one of those pages:    \ctxlua{math.randomseed( os.time() )}         \getrandomnumber \n {1} {10}      

[NTG-context] How to print a random whole number between x and y?

2022-06-17 Thread Joel via ntg-context
I was using this code for a long time in my document. I have a PDF with 10 pages, and this would randomly display one of those pages:    \ctxlua{math.randomseed( os.time() )}                  \getrandomnumber \n {1} {10}              \placefigure[force,