Random number in template

2004-06-02 Thread Thomas Andersson
Hi list, Is there a way to generate a random integer within a template? I want to pick a random line in a textfile to inlclude in my template. Example: %Getline("random_number_here","%Include='d:\magicfile.txt") Cheers Thomas -- Thomas Andersson - Sweden Email: [EMAIL PROTECTED] Running The Ba

Re: Random number in template

2004-06-02 Thread Leif Gregory
Hello Thomas, Wednesday, June 2, 2004, 9:05:57 AM, you wrote: Thomas> Is there a way to generate a random integer within a template? Thomas> I want to pick a random line in a textfile to inlclude in my Thomas> template. Thomas> Example: Thomas> %Getline("random_number_here","%Include='d:\magicfil

Re: Random number in template

2004-06-03 Thread Gerard
ON Wednesday, June 2, 2004, 5:05:57 PM, you wrote: TA> Hi list, TA> Is there a way to generate a random integer within a template? TA> I want to pick a random line in a textfile to inlclude in my template. TA> Example: TA> %Getline("random_number_here","%Include='d:\magicfile.txt") Hi Thomas,

Re[2]: Random number in template

2004-06-02 Thread Thomas Andersson
Wednesday, June 2, 2004, 5:22:00 PM, you wrote: LG> TB already does this. LG> 1. Create a text file with each item on a single line. LG>Use the \n in places where you want the text to wrap. LG>i.e. This line will wrap\nwherever there is a \n LG>Will show up as: LG>This line will

Random number advanced macro [was Re: Random number in template]

2004-06-02 Thread Dan Grunberg
Wed, 2 Jun 2004 17:05:57 +0200 (11:05 AM EDT here) Thomas Andersson wrote: > Hi list, > Is there a way to generate a random integer within a template? I > want to pick a random line in a textfile to inlclude in my template. > Example: %Getline("random_number_here","%Include='d:\magicfile.txt")