User:I forgot/Random page pseudocode

From Wackypedia
Jump to: navigation, search

For the first time ever, the real code to "random page" is revealed (presented as pseudocode).

Let u = the last 10 pages that user visited
Let w = the 30 worst pages on the wiki (excluding pages bad enough to delete)
Let r = 20 pages randomly selected from the last month of new pages
Let o = 10 pages randomly selected from the first month of the wiki's operation
Let set = the union of u, w, r, o
Select randomly from set