Am 06.04.10 00:21, schrieb Wolfgang Werners-Lucchini:
Hallo,

I get allways (10 times at least) the same result:
-------------------------------------------------------------
\starttext
\startluacode
math.randomseed(os.time())
\stopluacode

Encode your Name and Surname as a
\startluacode
local a = {'null-terminated', 'dollar-terminated', 'Pascal'}
context('%s string', a[math.random(1,3)])
\stopluacode
\stoptext
-------------------------------------------------------------
How can I randomize this?
ConTeXt saves the random value in the tuc file to get the same output in each run.

Delete the tuc file with 'context --purgeall'.

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to