I know, baja is old school, but For now, that's what I am comfortable with. I know haw to build a progem using random lines or one liners, but how do I select random paragraphs (4 or 5 lines). Can it be done. I'm trying to make a quotes program for login. As always, thanks
the best way to do that is to have each multiple line quote written to a separate file. otherwise, if you want it to be in one single file, you need to follow some type of standard where each quote is exactly a certain amount of lines, or you use some type of marker within the file to keep track of where you are and where you're going.
I know, baja is old school, but For now, that's what I am
comfortable with. I know haw to build a progem using random lines or
one liners, but how do I select random paragraphs (4 or 5 lines).
Can it be done. I'm trying to make a quotes program for login. As
always, thanks
I know, baja is old school, but For now, that's what I am comfortableHere's a thought, why not someone write a BAJA 2 JAVASCRIPT converter program.
Re: Baja Random Paragrphs
By: DesotoFireflite to All on Sun Jan 12 2014 03:12:15
I know, baja is old school, but For now, that's what I am comfortableHere's a thought, why not someone write a BAJA 2 JAVASCRIPT converter program.
the best way to do that is to have each multiple line quote written to a separate file. otherwise, if you want it to be in one single file, you need to follow some type of standard where each quote is exactly a certain amount of lines, or you use some type of marker within the file to keep track of where you are and where you're going. it would get very complicated. that's the only way i can think of doing it, but i'm sure there's another way.
if you dont want to devote a ton of time to it, i would go with having each quote in a separate file.
the quotes programs i've seen generally use a '%' on a blank line
between each section... they generate an index based on the line number
of each '%' and then choose which section to post by choosing a random number in the range of the index count... then the index for that
i have code for this written in either php or perl... it is in use on my
the quotes programs i've seen generally use a '%' on a blank line
between each section... they generate an index based on the line
number of each '%' and then choose which section to post by
choosing a random number in the range of the index count... then
the index for that i have code for this written in either php or
perl... it is in use on my [...]
I'm just learning Baja, so this may be a very stupid question, but
you mentioned php and perl, are they anything like baja codeing
wise?
I was thinking about that actually, but wondered if there was another way. Thanks for the reply:)
contact me privately if you are interested ;)
Sysop: | MCMLXXIX |
---|---|
Location: | Prospect, CT |
Users: | 325 |
Nodes: | 10 (0 / 10) |
Uptime: | 02:33:24 |
Calls: | 510 |
Messages: | 220569 |