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

normal distribution ≠ uniform distribution #72

Closed
wathenjiang opened this issue Aug 24, 2022 · 0 comments
Closed

normal distribution ≠ uniform distribution #72

wathenjiang opened this issue Aug 24, 2022 · 0 comments

Comments

@wathenjiang
Copy link
Contributor

The skiplist assumes uniform distribution, but it is not.

The method Rand.Uint64 fits a normal distribution,which is from https://github.com/chen3feng/stl4go/blob/master/skiplist.go#L256

May we should use a way to generate a uniform distribution.

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