ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* randomize
@ 2010-04-05 22:21 Wolfgang Werners-Lucchini
  2010-04-05 22:49 ` randomize Wolfgang Schuster
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Wolfgang Werners-Lucchini @ 2010-04-05 22:21 UTC (permalink / raw)
  To: ntg-context

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?

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread
[parent not found: <mailman.349.1270527943.4277.ntg-context@ntg.nl>]
[parent not found: <mailman.371.1270609971.4277.ntg-context@ntg.nl>]
[parent not found: <mailman.1.1270634402.10942.ntg-context@ntg.nl>]
[parent not found: <mailman.376.1270641896.4277.ntg-context@ntg.nl>]
[parent not found: <mailman.390.1270654736.4277.ntg-context@ntg.nl>]

end of thread, other threads:[~2010-04-08  8:00 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-05 22:21 randomize Wolfgang Werners-Lucchini
2010-04-05 22:49 ` randomize Wolfgang Schuster
2010-04-07  3:05 ` randomize Aditya Mahajan
2010-04-07  7:17   ` randomize Hans Hagen
2010-04-07  7:45   ` randomize luigi scarso
2010-04-07  6:55 ` Context and psfrag Honza Pohanka
     [not found] <mailman.349.1270527943.4277.ntg-context@ntg.nl>
2010-04-06 23:10 ` randomize Wolfgang Werners-Lucchini
2010-04-07  6:58   ` randomize Wolfgang Schuster
     [not found] <mailman.371.1270609971.4277.ntg-context@ntg.nl>
2010-04-07  9:40 ` randomize Wolfgang Werners-Lucchini
     [not found] <mailman.1.1270634402.10942.ntg-context@ntg.nl>
2010-04-07 11:00 ` randomize Wolfgang Werners-Lucchini
2010-04-07 11:05   ` randomize Arthur Reutenauer
     [not found] <mailman.376.1270641896.4277.ntg-context@ntg.nl>
2010-04-07 13:42 ` randomize Wolfgang Werners-Lucchini
2010-04-07 13:56   ` randomize Arthur Reutenauer
     [not found] <mailman.390.1270654736.4277.ntg-context@ntg.nl>
2010-04-08  7:28 ` randomize Wolfgang Werners-Lucchini
2010-04-08  7:41   ` randomize Arthur Reutenauer
2010-04-08  7:49     ` randomize Wolfgang Schuster
2010-04-08  8:00       ` randomize Arthur Reutenauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).