Lets say I have a text file that looks like this:
ed said hi to kat this morning
john waved at ed this afternoon
bill saw kat last night :x
kat wasn't amused
Is there a way to make $read(file.txt, s, kat) to be randomized, so that on the first $read, it gives 'ed said hi to kat this morning', but on the second it would give 'kat wasn't amused' ...?
Example two: $read(file.txt, s, this) would return a line (randomly?) with the word 'this' in it.
Thanks,
-ed