[issue37624] random.choices has unexpected behavior with negative weights

2019-07-18 Thread Ted Whalen
New submission from Ted Whalen : The behavior of random.choices when negative weights are provided is unexpected. While giving a negative weight for one value is probably bad, it's really unfortunate that providing a negative weight for one value affects the probability of selecti

[issue31689] random.choices does not work with negative weights

2019-03-01 Thread Ted Whalen
Ted Whalen added the comment: I think this should be reopened, as the behavior doesn't always raise an error, and, in fact, does something very unexpected: Python 3.7.2 (default, Jan 13 2019, 12:50:01) [Clang 10.0.0 (clang-1000.11.45.5)] on darwin Type "help", "copy