- #!/usr/athena/bin/python
- import random
- zfile = open('.zsigs')
- linelist = zfile.read().splitlines()
- zfile.close()
- print random.choice(linelist)
-
- If you want to use another language (e.g. perl or C), or check out what version is running on Athena, see [What Runs Where on Athena: Languages - IS&T] (http://web.mit.edu/acs/www/languages.html) and just swap out the first line with the language you want. See also [Random Zsigs - iZephyr](http://stuff.mit.edu/afs/sipb/project/doc/izephyr/html/node35.html) for more example programs (note the instructions are outdated).
-
-5. If you want to, test your program.
-
- kusername@dr-wily:~$ python .zrandom