Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add probability to Random.bool() #75

Merged
merged 1 commit into from
Apr 10, 2020

Conversation

hamoid
Copy link
Member

@hamoid hamoid commented Apr 9, 2020

Random.bool() returned true with 50% probability.

Now you can specify your chances:
Random.bool(0.01) is a rare event, Random.bool(0.99) almost certain.

@edwinRNDR edwinRNDR merged commit b807986 into openrndr:master Apr 10, 2020
@hamoid hamoid deleted the randomBoolProbability branch April 10, 2020 15:51
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.

2 participants