Site Tools


randread
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


randread [2007/03/02 02:32] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +# $EPIC: randread.txt,v 1.3 2007/03/02 02:32:04 jnelson Exp $
 +======Synopsis:======
 +$__randread__(<filename>)
 +
 +======Technical:======
 +The <filename> argument is a [[what is a word|dword]] which is different
 +from most function arguments.
 +
 +This function reads a random line from the specified <filename>.
 +
 +======Practical:======
 +This function has many novelty uses: random messages for /[[quit]], /[[kick]],
 +/[[part]], or /[[topic]].
 +
 +======Returns:======
 +The empty string is returned on error (the file does not exist, the file
 +is empty, or the file cannot be read).  Otherwise, a random line from
 +the file is returned.
  
randread.txt · Last modified: 2007/03/02 02:32 by 127.0.0.1