From: Austin Ziegler Date: 2003-03-30T05:30:43+09:00 Subject: Re: Weighted random selection -- how would you do this? On Sun, 30 Mar 2003 04:07:22 +0900, Phil Tomson wrote: > I tried running it a few times and well it seems to work. > > I was just thinking that the order of the elements in the list > could influence which is picked (for example if elements with high > weights appeared earlier or later in the list), but it doesn't > seem to be the case. Certainly a lot more compact and faster than > my RouletteWheel example. Couldn't order affect the results if more than one item share the same weight? -austin -- Austin Ziegler, austin@halostatue.ca on 2003.03.29 at 15:29:10