• Random Lines

    From Willowolf@VERT/WOLFGROT to All on Tue Aug 21 00:44:00 2001
    How would I program a random selection in Baja? I want to display randomãone-liners at logon to my users. I don't care if I have to program theãone-liners into the baja .src file, I just want it simple.ããThanks,ã\\/ãã---ã þ Synchronet þ Wolf Grotto -Las Vegas, NV- telnet://wolfgrotto.2y.netã
  • From Amcleod@VERT to Willowolf on Tue Aug 21 04:41:57 2001
    RE: Random LinesãBY: Willowolf to All on Tue Aug 21 2001 07:44 amãã > How would I program a random selection in Baja? I want to display randã > one-liners at logon to my users. I don't care if I have to program theã > one-liners into the baja .src file, I just want it simple.ããGet the BAJA documentation and look for the section on SWITCH/CASE which givesãas an example, a small fragment of code that does random selections. Expand onãthis to your hearts content.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Jas Hud@VERT to Willowolf on Thu Aug 23 01:53:28 2001
    RE: Random LinesãBY: Willowolf to All on Tue Aug 21 2001 07:44 amãã > How would I program a random selection in Baja? I want to display randã > one-liners at logon to my users. I don't care if I have to program theã > one-liners into the baja .src file, I just want it simple.ã > ã > Thanks,ã > \\/ã > ããcompare_ars RANDOM 3 (or whatever you want)ãif_trueãprintfile "x:\shit.txt"ãend_ifãcompare_ars random 3ãif_trueãprintfile "x:\shit2.txt"ãend_ifã# fallthroughãprintfile "x:\shit3.txt"ãgoto duhã:duhã# oops, i forgot to put a "goto duh " before each end_ifã# ah well, might/might not be applicableããyou can also use random with an interger, but this way is easyã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Jas Hud@VERT to All on Thu Aug 23 01:54:34 2001
    RE: Random LinesãBY: Amcleod to Willowolf on Tue Aug 21 2001 11:41 amãã > RE: Random Linesã > BY: Willowolf to All on Tue Aug 21 2001 07:44 amã > ã > > How would I program a random selection in Baja? I want to display rã > > one-liners at logon to my users. I don't care if I have to program theã > > one-liners into the baja .src file, I just want it simple.ã > ã > Get the BAJA documentation and look for the section on SWITCH/CASE which givã > as an example, a small fragment of code that does random selections. Expandã > this to your hearts content.ããthat one mime rumos thing is helpfull, so is aces one, though you have toãfix up the code to get it to work.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Willowolf@VERT/WOLFGROT to Jas Hud on Fri Aug 24 21:11:00 2001
    RE: Random LinesãBY: Jas Hud to Willowolf on Thu Aug 23 2001 08:53 amãã > compare_ars RANDOM 3 (or whatever you want)ã > if_trueã > printfile "x:\shit.txt"ã > end_ifã > compare_ars random 3ã > if_trueã > printfile "x:\shit2.txt"ã > end_ifã > # fallthroughã > printfile "x:\shit3.txt"ã > goto duhã > :duhã > # oops, i forgot to put a "goto duh " before each end_ifã > # ah well, might/might not be applicableãã Thanks, I'll try that.ãã\\/ãs/ããã---ã þ Synchronet þ Wolf Grotto -Las Vegas, NV- telnet://wolfgrotto.2y.netã