in reply to Re: Weighted random selection
in thread Weighted random selection

Now (after the correction) later items are chosen too often (just try the test case, ad1 gets picked very very seldom).

Which shows that one shouldn't post answers when dead tired. ;-)