Anyone know of a utility that will extract a quote, at random, from a
file of quotes (separated by a given string, which I could change easily enough - currently using "%%"), that will work under a 64-bit OS? The
one I used to use [TomQuote] is I think 16 bit, and won't.
(And no, I can't use a VM, for legal reasons.)
J. P. Gilliver <G6JPG@255soft.uk> wrote:
Anyone know of a utility that will extract a quote, at random, from a
file of quotes (separated by a given string, which I could change easily
enough - currently using "%%"), that will work under a 64-bit OS? The
one I used to use [TomQuote] is I think 16 bit, and won't.
(And no, I can't use a VM, for legal reasons.)
I would put your list of quotes as individual entries in a simple database
like SQLite and then run this SQL statement:
SELECT * FROM my_quotes ORDER BY RANDOM() LIMIT 1;
Completely portable.
On 18/06/2025 at 11:43, J. P. Gilliver wrote:
Anyone know of a utility that will extract a quote, at random, from a
file of quotes (separated by a given string, which I could change
easily enough - currently using "%%"), that will work under a 64-bit
OS? The one I used to use [TomQuote] is I think 16 bit, and won't.
(And no, I can't use a VM, for legal reasons.)
https://www.bgreco.net/fortune
Anyone know of a utility that will extract a quote, at random, from a
file of quotes (separated by a given string, which I could change easily enough - currently using "%%"), that will work under a 64-bit OS? The
one I used to use [TomQuote] is I think 16 bit, and won't.
(And no, I can't use a VM, for legal reasons.)
Anyone know of a utility that will extract a quote, at random, from a
file of quotes (separated by a given string, which I could change
easily enough - currently using "%%"), that will work under a 64-bit
OS? The one I used to use [TomQuote] is I think 16 bit, and won't.
(And no, I can't use a VM, for legal reasons.)
Anyone know of a utility that will extract a quote, at random, from a file of quotes (separated by a given string, which I could change easily enough - currently using "%%"), that will work under a 64-bit OS? The one I used to use [TomQuote] is I think16 bit, and won't.
(And no, I can't use a VM, for legal reasons.)
Anyone know of a utility that will extract a quote, at random, from a
file of quotes (separated by a given string, which I could change easily enough - currently using "%%"), that will work under a 64-bit OS? The
one I used to use [TomQuote] is I think 16 bit, and won't.
On 2025/6/18 13:51:49, Chris wrote:
J. P. Gilliver <G6JPG@255soft.uk> wrote:
Anyone know of a utility that will extract a quote, at random, from a
file of quotes (separated by a given string, which I could change easily >>> enough - currently using "%%"), that will work under a 64-bit OS? The
one I used to use [TomQuote] is I think 16 bit, and won't.
(And no, I can't use a VM, for legal reasons.)
I would put your list of quotes as individual entries in a simple database
That sounds like a lot of work …
like SQLite and then run this SQL statement:
SELECT * FROM my_quotes ORDER BY RANDOM() LIMIT 1;
… but that is a very elegant solution, and I appreciate your skill with the language involved. (I'll have a look at Chris Elvidge's solution first.)>
Completely portable.Assuming you have a machine with an interpreter/compiler for whatever language that line is written in.
Down side is you need recompile whenever you add new quotes.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 508 |
Nodes: | 16 (2 / 14) |
Uptime: | 224:05:10 |
Calls: | 9,976 |
Calls today: | 7 |
Files: | 13,833 |
Messages: | 6,359,117 |