From: "Jesús Gabriel y Galán" Date: 2012-11-27T17:18:08+09:00 Subject: Re: Algorithm for choosing object based on priority On Tue, Nov 27, 2012 at 8:00 AM, Kaspar Schiess wrote: >> This algorithm has the consequence that the biggest weight entries >> appear more at the end, since each key has the same probability of >> being chosen. If you want weighted appearance, you should weigth the >> random choosing with the counts. > > Or to combine the two ideas, weight the die with the values from the hash. Yes, that's what I meant, but rereading myself I explained it really badly :D Jesus.