Module:Random/testcases
< Module:Random
Jump to navigation
Jump to search
Revision as of 10:43, 26 November 2013 by blackwiki>Mr. Stradivarius (add date test cases)
Number
| Code | Main | Sandbox |
|---|---|---|
{{#invoke:random|number}}
|
0.1427675267415 | 0.62043549801243 |
{{#invoke:random|number|10}}
|
10 | 9 |
{{#invoke:random|number|10|20}}
|
11 | 16 |
{{#invoke:random|number|500000}}
|
236812 | 206681 |
{{#invoke:random|number|-10}}
|
-2 | 0 |
{{#invoke:random|number|20|10}}
|
16 | 16 |
{{#invoke:random|number|-100|-50}}
|
-71 | -54 |
{{#invoke:random|number|6.5}}
|
5 | 1 |
{{#invoke:random|number|-6.5}}
|
-5 | -2 |
{{#invoke:random|number|-16.5|-6.5}}
|
-10.5 | -8.5 |
Date
| Code | Main | Sandbox |
|---|---|---|
{{#invoke:random|date}}
|
14:28, 28 July 2026 (UTC) | 18:51, 17 October 2026 (UTC) |
{{#invoke:random|date|1 Jan 2000}}
|
04:35, 05 October 1979 (UTC) | 03:58, 16 October 1975 (UTC) |
{{#invoke:random|date|1 Jan 2000|27 July 2176}}
|
05:38, 30 November 2013 (UTC) | 21:24, 03 January 2088 (UTC) |
{{#invoke:random|date|1000|2000|format=Y}}
|
1134 | 1229 |
{{#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}}
|
2026/06/21 22:44 | 2026/10/08 21:55 |