Re: Threaded Design Question

2007-08-09 Thread Jun-geun Park
[EMAIL PROTECTED] wrote: > Hi all! I'm implementing one of my first multithreaded apps, and have > gotten to a point where I think I'm going off track from a standard > idiom. Wondering if anyone can point me in the right direction. > > The script will run as a daemon and watch a given directory

Re: Biased random?

2007-08-27 Thread Jun-geun Park
Ivan Voras wrote: > Hi, > > I have a list of items, and need to choose several elements from it, > "almost random". The catch is that the elements from the beginning > should have more chance of being selected than those at the end (how > much more? I don't care how the "envelope" of probability l

Re: Biased random?

2007-08-27 Thread Jun-geun Park
Jun-geun Park wrote: > Ivan Voras wrote: >> Hi, >> >> I have a list of items, and need to choose several elements from it, >> "almost random". The catch is that the elements from the beginning >> should have more chance of being selected than those at