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

More random distribution of bucket integers #17

Open
harlantwood opened this issue Feb 22, 2022 · 0 comments
Open

More random distribution of bucket integers #17

harlantwood opened this issue Feb 22, 2022 · 0 comments

Comments

@harlantwood
Copy link
Member

Currently we do int % 10 where int is 0..=255, so we have a very slight weighting toward 0-5.

We could eliminate this by doing something like:

( int.to_float / 25.5 ).to_int 

instead

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

No branches or pull requests

1 participant