Help:Random
From Games
The RandomSelection MediaWiki extension is available on Wikigames.
It can be used to generate a random option from a given set. The basic syntax is <choose><option>Option 1</option><option>Option 2</option></choose>.
This example will display either the Test3 or Test4 image:
<choose><option>[[Image:Test3.png]]</option><option>[[Image:Test4.png]]</option></choose>
You can weight the options. This example with 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 dice for an example of this extension in use.


