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
Can Arbitrary be biased? #68
Comments
|
At the end of the day, this is a library for fuzzing and related activities. That use case is the priority. That said, we certainly want uniformity (or at least an approximation) for things like An example where we balance these things: https://github.com/rust-fuzz/arbitrary/blob/master/derive/src/lib.rs#L74-L76 |
Also note that it's hard to say what this means for dynamically-sized collections like |
I have a question that might be clarified in the documentation. Is Arbitrary supposed to be exactly uniformly distributed? Or is it supposed to be quick? For example, I can generate a number between 0 and 10 by dividing the value of a
u8
by 26. With extra computations, the distribution could be made uniform, but is that necessary or desirable?The text was updated successfully, but these errors were encountered: