Select Single Paragraph From Text File At Random
Our school has lots of little phrases like:
Every day is a gift.
The best way to predict your future is to create it.
You will never find time for anything. If you want time you must make it.
Our staff like to motivate our students by having these on the walls around the school.
I had the thought that if I could put lots of these into a text file I could [somehow] run a query on the file and randomly choose one of the paragraphs and have that display on the student desktops using BGInfo [random choice because if they are all the same then the students would not find it as interesting/noticeable if they were all the same or they were predictable]
So my question is:
How do I query the file:
pull out a single line, write that to another file so that BGInfo can display it?
Hope that is clear. Can it be done?
Note: There would be LOTS of phrases to choose from not just two [hopefully hundreds]