Skip to content

Fix totalWeight not being reset in Clear#18

Open
basuhei wants to merge 1 commit intonuskey8:mainfrom
basuhei:main
Open

Fix totalWeight not being reset in Clear#18
basuhei wants to merge 1 commit intonuskey8:mainfrom
basuhei:main

Conversation

@basuhei
Copy link

@basuhei basuhei commented Feb 26, 2026

After calling Clear(), adding elements would result in incorrect probability calculations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant