Re: [users] Re: random lines

2001-07-02 Thread Martin F. Krafft
also sprach Steven Smolinski (on Mon, 02 Jul 2001 01:46:29PM -0400): That algorithm is one of the purest distillations of beauty I've ever seen. :-) Remember, the perlfaq is far more peer-reviewed than almost any other source of info. okay, okay. i believe you. did you give me a link for

Re: [users] Re: random lines

2001-07-02 Thread Steven Smolinski
On Tue, Jul 03, 2001 at 12:23:20AM +0200, Martin F. Krafft wrote: also sprach Steven Smolinski (on Mon, 02 Jul 2001 01:46:29PM -0400): That algorithm is one of the purest distillations of beauty I've ever seen. :-) Remember, the perlfaq is far more peer-reviewed than almost any other

Re: [users] Re: random lines

2001-07-02 Thread Martin F. Krafft
also sprach Steven Smolinski (on Mon, 02 Jul 2001 02:47:49PM -0400): Huh? I thought you wanted one random line chosen out of several? yeah well, so did i. but in retrospect, for a random playlist of albums for a custom script to be used with mpg123, permutations make more sense. but i still

Re: [users] Re: random lines

2001-07-01 Thread Martin F. Krafft
also sprach Thomas J. Hamman (on Sun, 01 Jul 2001 11:58:32AM -0400): What exactly is this for? You could use fortune and strfile. Make the text file with a % symbol between each selection, like this: a list of albums that i have on mp3 format.and the desire to have a script that plays

[users] Re: random lines

2001-07-01 Thread Steven Smolinski
Martin F. Krafft [EMAIL PROTECTED] wrote: also sprach Thomas J. Hamman (on Sun, 01 Jul 2001 11:58:32AM -0400): What exactly is this for? You could use fortune and strfile. Make the text file with a % symbol between each selection, like this: a list of albums that i have on mp3 format.

Re: [users] Re: random lines

2001-07-01 Thread Thomas J. Hamman
On Sun, Jul 01, 2001 at 06:12:49PM +0200, Martin F. Krafft wrote: from random import * from linecache import * print getline('~/.muttrc',randrange(1,20)) except that hardcodes the file length, does it not? Yep, like I said it was a quickie example. Here's something that wouldn't have

Re: [users] Re: random lines

2001-07-01 Thread Martin F. Krafft
also sprach Thomas J. Hamman (on Sun, 01 Jul 2001 01:32:54PM -0400): I like Python. :) mailman is written in python, right? from my experience, python scripts always take 1-2 seconds to load before they execute. that's kind of a pain. i don't know how python and shell interact - since i plan to