I know this and I have triggerd this by hand. So there is a lot of time between. I have purged files between every run and I got the same result if I wait 1 second, 1 minute or 1 day.
Well, then it probably qualifies as a bug, and, since the .tuc file has apparently been dismissed as a cause, you'd have to provide more precise information if you're interested in having it corrected (or do the debugging yourself, of course).
Arthur
I have found a discussion on this thema. See http://lua-users.org/lists/lua-l/2007-03/msg00564.html So I have changed the example to ------------------------------------------------------------- \starttext \startluacode math.randomseed(os.time()) _=math.random() \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 ------------------------------------------------------------- and this is working ok! Wolfgang
Interesting, thanks for the research. So now we know you use a Mac :-) Arthur
Am 08.04.10 09:41, schrieb Arthur Reutenauer:
Interesting, thanks for the research. So now we know you use a Mac :-)
Sure? I think he use windows, take a look at the mail header: Pegasus Mail for Windows (4.41, DE v4.41 R1) Wolfgang
Sure? I think he use windows, take a look at the mail header:
Pegasus Mail for Windows (4.41, DE v4.41 R1)
Right, I was misled by the thread on the Lua list he pointed to, that focused on the rand() implementation on Mac OS and other BSD descendants (I had overseen that it mentioned the same problem also happened on Windows). But let's drop the discussion there, lest Anonymous ConTeXt User starts worrying we're going to track him down, too :-) (I have contacts at Google on different continents!) Arthur
participants (3)
-
Arthur Reutenauer
-
Wolfgang Schuster
-
Wolfgang Werners-Lucchini