MediaWiki makes use of a `page_random` field for the [[Special:Random]] page.
I'm assuming that it grabs the highest value from that index, then when viewed regenerates the page_random value there in some way.

It would be worth it to look over how MediaWiki deals with random pages, and either integrate with it or do random queries in a similar way.
~Daniel Friesen(Dantman, Nadir-Seen-Fire) of:
-The Nadir-Point Group (
--It's Wiki-Tools subgroup (
--The ElectronicMe project (
--Games-G.P.S. (
-And Wikia ACG on (
--Animepedia (
--Narutopedia (
Markus Krötzsch wrote:
On Montag, 4. August 2008, Asheesh Laroia wrote:
On Fri, 25 Jul 2008, Steren wrote:
I wrote yesterday a small patch for SMW. It allows to sort query results
Creative Commons needed this feature for its Casestudies project.
[Further details snipped]

Dear SMW devs,

Can this patch be included in the SMW svn?

That would be lovely.  If there is a reason it can't, let's see if it can
be worked out!

Well, I guess it can be included. Of course it is clear that this just cannot 
perform very well, so there should probably be a switch to enable it only if 
desired. It might be good to have a MediaZilla entry for that, so I do not 

One could also think about some faster not-so-random solution as a fallback 
for larger sites.

-- Markus

-- Asheesh.


------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world

_______________________________________________ Semediawiki-devel mailing list