Skip to content

Simplify MathMixin.random_choice() - #797

Open
ulgens wants to merge 2 commits into
py5coding:mainfrom
ulgens:simplify-random_choice
Open

Simplify MathMixin.random_choice()#797
ulgens wants to merge 2 commits into
py5coding:mainfrom
ulgens:simplify-random_choice

Conversation

@ulgens

@ulgens ulgens commented Aug 26, 2026

Copy link
Copy Markdown

Removes redundant Java-style index based approach.

This was the original approach with .random_choice(), but the code move away from it in f8076aa without any explanation.

ulgens added 2 commits August 28, 2026 19:41
Removes redundant Java-style index based approach.

This was the original approach with .random_choice(), but the code move away from it in f8076aa without any explanation.
@ulgens
ulgens force-pushed the simplify-random_choice branch from 7715553 to 68dbb1c Compare August 28, 2026 16:42
ulgens added a commit to ulgens/py5 that referenced this pull request Aug 28, 2026
ulgens added a commit to ulgens/py5 that referenced this pull request Aug 28, 2026
ulgens added a commit to ulgens/py5 that referenced this pull request Aug 28, 2026
ulgens added a commit to ulgens/py5 that referenced this pull request Aug 28, 2026
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