Extension:Random

What is it?
Random is designed to return one or more items parsed as wikitext in a randomly shuffled order. A random shuffle prevents an item from being displayed twice by the same call to random, unless two or more items contain exactly the same contents.

Semi-random numbers can be generated without an extension like this, using magic words and ParserFunctions - see w:Template:Random number for an example.

For information about the unrelated native feature Special:Random, see Help:Random page. It is not working on mediawiki 1.26.

Install

 * 1) Create a new folder/directory inside your mediawiki's extensions folder/directory named "Random".
 * 2) Create a new file named "Random.php" inside the "Random" folder/directory from step one.
 * 3) Copy the code to the new "Random.php" file from step two, and save the file.
 * 4) Add   to your LocalSettings.php

Incorporating into a Template
If desired, the tag (including the enclosed list of items) can be placed in a template (e.g. Template:MyRandomWikiItems  ) and then just the corresponding template tag (e.g.  ) could be placed within a wiki page. (It is then highly recommended that a wiki administrator "protect" such a template if it is not meant to be changed by casual wiki users.)

Alternatives

 * RandomArea
 * RandomText