Help:Random selection
Memory Beta, the wiki for licensed Star Trek content.
The RandomSelection MediaWiki extension can be used to generate a random option from a given set.
[edit] Syntax
<choose> <option>Option 1</option> <option>Option 2</option> </choose>
This example will display either the Romulan or United Earth logo:
<choose> <option>[[Image:Romulan_Star_Empire_2379_logo.png|200px]]</option> <option>[[Image:United_Earth_logo.png|200px]]</option> </choose>
Note that you can weight the options. This example will give a 3x weighting to option 1:
<choose> <option weight="3">Option 1</option> <option>Option 2</option> </choose>
Links, images, and templates can all be included as options.
See Random Pic of the Day at Memory Alpha for an example of this extension in use.