anishmehta24 commented on PR #41560:
URL: https://github.com/apache/beam/pull/41560#issuecomment-7093614061

   Added the 12-element case to the test. A tie now goes to the first element 
whose cumulative weight reaches the target, which matches the old formula for 
integer weights, and the target is pulled back by 1e-9 of the total weight so 
float rounding can't flip it. Every scale gives `[0, 5, 11]` now (da377e8).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to