t**********s 发帖数: 930 | 1 The fortune program on most *nix boxes displays a random fortune. Fortunes
are kept in several files in a particular directory (usually /user/share/
fortune). Each file contains several (many) fortunes, of various length.
Each fortune in a file is separated by a line w/some delimiter character,
typically '%'
When the program is run, a random fortune is chosen, and displayed on the
screen. This should be done quickly. You are to devise a scheme whereby the
time required to choose a fortune isn't | N*********y 发帖数: 105 | 2 must be a google question, hehe. |
|