ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Random selection of a word in a set with lua and mkiv
@ 2011-06-08 16:52 Otared Kavian
  2011-06-08 17:00 ` Hans Hagen
  2011-06-08 17:00 ` Mathieu Dupont
  0 siblings, 2 replies; 7+ messages in thread
From: Otared Kavian @ 2011-06-08 16:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

Assuming that we have a set of words or expressions, say
	{Maths, Physics, Algebra, Analysis, Chemistry, Geometry, Wave equation, Schrödinger equation}
is it possible to write a lua function, named for instance
	randomselectword
which returns one of the words or expressions selected at random in the above set?
Indeed this is intended to be used in a TeX file processed with mkiv.

Thanks in advance for any idea and help.

Best regards: OK
___________________________________________________________________________________
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] 7+ messages in thread

end of thread, other threads:[~2011-06-08 20:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-08 16:52 Random selection of a word in a set with lua and mkiv Otared Kavian
2011-06-08 17:00 ` Hans Hagen
2011-06-08 17:00 ` Mathieu Dupont
2011-06-08 17:07   ` Hans Hagen
2011-06-08 17:19     ` Mathieu Dupont
2011-06-08 20:12   ` Otared Kavian
2011-06-08 20:48     ` Hans Hagen

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).