Module:Random/testcases
Appearance
![]() | This is the template test cases page for the sandbox of Module:Random. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Number
Code | Main | Sandbox |
---|---|---|
{{#invoke:random|number}}
|
0.23839801980108 | 0.1190359881702 |
{{#invoke:random|number|10}}
|
1 | 1 |
{{#invoke:random|number|10|20}}
|
20 | 18 |
{{#invoke:random|number|500000}}
|
74830 | 263748 |
{{#invoke:random|number|-10}}
|
-4 | -8 |
{{#invoke:random|number|20|10}}
|
10 | 14 |
{{#invoke:random|number|-100|-50}}
|
-84 | -65 |
{{#invoke:random|number|6.5}}
|
5 | 4 |
{{#invoke:random|number|-6.5}}
|
-6 | -5 |
{{#invoke:random|number|-16.5|-6.5}}
|
-7.5 | -14.5 |
Date
Code | Main | Sandbox |
---|---|---|
{{#invoke:random|date}}
|
04:50, 22 February 2025 (UTC) | 19:26, 18 February 2025 (UTC) |
{{#invoke:random|date|1 Jan 2000}}
|
22:20, 01 October 1974 (UTC) | 10:05, 11 August 1994 (UTC) |
{{#invoke:random|date|1 Jan 2000|27 July 2176}}
|
17:06, 05 August 2168 (UTC) | 00:05, 26 September 2172 (UTC) |
{{#invoke:random|date|1000|2000|format=Y}}
|
1728 | 1033 |
{{#invoke:random|date|2000|1000|format=Y}}
|
Module:Random error: the start date must not be later than the end date (start date: "2000", end date: "1000"). | Module:Random error: the start date must not be later than the end date (start date: "2000", end date: "1000"). |
{{#invoke:random|date|format=Y/m/d H:i}}
|
2025/01/16 04:21 | 2025/03/09 15:54 |
Item
Code | Main | Sandbox |
---|---|---|
{{#invoke:random|item|egg|spam|beans|sausage|bacon|Lobster Thermidor aux crevettes}}
|
beans | bacon |
{{#invoke:random|item|egg|spam|beans|sausage|bacon|Lobster Thermidor aux crevettes}}
|
Lobster Thermidor aux crevettes | Lobster Thermidor aux crevettes |