Message348140
| Author | aldwinaldwin |
|---|---|
| Recipients | Ted Whalen, aldwinaldwin |
| Date | 2019-07-19.03:18:54 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1563506334.46.0.580636473317.issue37624@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
This is what happens with your weights: >>> list(itertools.accumulate(weights)) [1, 2, 1, 2, 3, 3, 4] using bisect.bisect certain amount of times, will distribute on this: a<1<b<2<c<1<d<2<e<3<f<4<g random numbers between 1 and 2 will go to 1<'b'<2 and not 'd' that is also 1<'d'<2 As discussed in issue31689, if no negative weights should be used, then a ValueError exception should be re-concidered. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2019-07-19 03:18:54 | aldwinaldwin | set | recipients: + aldwinaldwin, Ted Whalen |
| 2019-07-19 03:18:54 | aldwinaldwin | set | messageid: <1563506334.46.0.580636473317.issue37624@roundup.psfhosted.org> |
| 2019-07-19 03:18:54 | aldwinaldwin | link | issue37624 messages |
| 2019-07-19 03:18:54 | aldwinaldwin | create | |