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

results are not distributed randomly across domain represented by regex length #6

Open
thurt opened this issue Jan 23, 2018 · 0 comments

Comments

@thurt
Copy link

thurt commented Jan 23, 2018

consider regex 0{1,10}, https://goregen-demo.herokuapp.com/?Regex=0%7B1%2C10%7D&Count=10

after performing this query 10 times it appears that the results are skewed towards the lower lengths, with a majority of the results being 0 and 00. wondering if you have any insights into this or its just my imagination? perhaps it is related to how the value is generated in the case of this regex?

in contrast, a regex like this https://goregen-demo.herokuapp.com/?Regex=0%7C%5B1-9%5D&Count=10 appears to consistently distribute randomly across the domain.

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