in reply to Efficiently selecting a random, weighted element
Then push the name of the file, $n times into a selection array. When done filling the processing array, just randomly select from the array.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Efficiently selecting a random, weighted element
by jimt (Chaplain) on Oct 10, 2006 at 16:40 UTC |