On 14 May 2018 at 20:02, Paul wrote:
> 1) I understand the added cost of verifying the sequence. However, this
> appears to be a one-time cost. E.G., if I submit this,
>
> random.choices(lm,cum_weights=[25,26,36,46,136],k=400
>
> then the code will do an O(n log n) operation 400 times.
>
> If ve
Hello all,
Thanks for the thoughtful (and non-snarky) replies.
First, a suggestion for a documentation change:
To this paragraph:
*If neither weights nor cum_weights are specified, selections are made with
equal probability. If a weights sequence is supplied, it must be the same
length as the