Last modified: 2009-08-13 18:11:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T22208, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20208 - Special:Random does not include all pages on large wikis
Special:Random does not include all pages on large wikis
Status: NEW
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-12 23:54 UTC by Christian Thiele
Modified: 2009-08-13 18:11 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Christian Thiele 2009-08-12 23:54:29 UTC
Special:Random gives you a special page from the wiki. This depends on a random number between 0 and 1 (page_random) stored in the page table with 12 decimal places. This is created using wfRandom() in GlobalFunctions.php, where the comment states: "Get a random decimal value between 0 and 1, in a way not likely to give duplicate values for any realistic number of articles.". This is not true. For example on de.wikipedia we currently have more than 30 articles having the same page_random like another article. 

Of course you can create 1.000.000.000.000 different random numbers with 12 decimal places, but it's not unlikely to have a number twice when generating them using a random function. 

This is not a big problem, but there are currently some articles in de.wikipedia which will never occur when clicking "Random article". I think at en.wikipedia this is the same and so its not really a "random article".

Maybe it would be a solution to check, if the random number already exists and take another one, if yes. As said, there are enough possibilities...

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links