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

Random author button is not nearly random #586

Closed
Daniel-Mietchen opened this issue Dec 16, 2018 · 5 comments
Closed

Random author button is not nearly random #586

Daniel-Mietchen opened this issue Dec 16, 2018 · 5 comments
Labels
random some random elements of the project

Comments

@Daniel-Mietchen
Copy link
Member

I just hit it 10 times in a row and got only two different authors out of that.

@Daniel-Mietchen Daniel-Mietchen added the random some random elements of the project label Dec 16, 2018
@fnielsen
Copy link
Collaborator

Just hit 4 times and got four different.

@fnielsen
Copy link
Collaborator

I suppose there could be the WDQS cache.

Another solution is to remove it altogether.

@fnielsen
Copy link
Collaborator

fnielsen commented Sep 9, 2020

It is also far too slow

@fnielsen
Copy link
Collaborator

fnielsen commented Sep 9, 2020

>>> " ".join("wd:Q{}".format(random.randrange(1, 100000000)) for _ in range(100))

Followed by

SELECT ?author {
  VALUES ?work { wd:Q4099960 wd:Q90869473 wd:Q89343981 wd:Q59018288 w...
  ?work wdt:P50 ?author .
}
LIMIT 1

fnielsen added a commit that referenced this issue Sep 9, 2020
Fix #586: Improved random author generation
@fnielsen
Copy link
Collaborator

fnielsen commented Sep 9, 2020

Now running: https://scholia.toolforge.org/author/random

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
random some random elements of the project
Projects
None yet
Development

No branches or pull requests

2 participants