On Thu, Sep 16, 2004 at 01:44:45PM -0600, Alan Wessman wrote:
Here's some relevant code snippets from SpecialRandomPage.php:
- A random number is generated using the PHP function mt_rand()
- That number is used to find an article in the default namespace (not
a redirect) with the closest greater cur_random value than the generated number.
- The cur_random value is generated with mt_rand() and saved with the
article in Article.php.
Some pages have a cur_random of 0, and will never be chosen by Special:Randompage.
Regards,
JeLuF