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.11662079818389 | 0.85278048964812 |
{{#invoke:random|number|10}}
|
5 | 10 |
{{#invoke:random|number|10|20}}
|
11 | 19 |
{{#invoke:random|number|500000}}
|
395021 | 138161 |
{{#invoke:random|number|-10}}
|
-8 | -4 |
{{#invoke:random|number|20|10}}
|
14 | 12 |
{{#invoke:random|number|-100|-50}}
|
-65 | -51 |
{{#invoke:random|number|6.5}}
|
4 | 4 |
{{#invoke:random|number|-6.5}}
|
-3 | -2 |
{{#invoke:random|number|-16.5|-6.5}}
|
-12.5 | -10.5 |
Date
| Code | Main | Sandbox |
|---|---|---|
{{#invoke:random|date}}
|
08:08, 14 June 2026 (UTC) | 14:32, 11 January 2026 (UTC) |
{{#invoke:random|date|1 Jan 2000}}
|
16:16, 03 July 1980 (UTC) | 05:55, 30 July 1999 (UTC) |
{{#invoke:random|date|1 Jan 2000|27 July 2176}}
|
20:21, 21 July 2082 (UTC) | 04:08, 17 September 2012 (UTC) |
{{#invoke:random|date|1000|2000|format=Y}}
|
1111 | 1640 |
{{#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/03/21 19:02 | 2026/07/13 16:34 |