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 error handling to the non-converging edge case for random distribution functions #4082

Open
jaketrookman opened this issue Feb 5, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jaketrookman
Copy link
Contributor

We return the value of -1 if there is no convergence of a number trying to be generated by the different random distribution functions. These cases are possible, although extremely unlikely. either an error should be thrown or a value in the distribution should be generated.

return -1.0; // we failed 100 times in a row which should practically never happen

@jaketrookman jaketrookman added the enhancement New feature or request label Feb 5, 2025
@jaketrookman jaketrookman self-assigned this Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant