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.14252153604409 | 0.77822871495887 |
{{#invoke:random|number|10}}
|
9 | 9 |
{{#invoke:random|number|10|20}}
|
15 | 14 |
{{#invoke:random|number|500000}}
|
411382 | 183645 |
{{#invoke:random|number|-10}}
|
-6 | -3 |
{{#invoke:random|number|20|10}}
|
15 | 10 |
{{#invoke:random|number|-100|-50}}
|
-88 | -76 |
{{#invoke:random|number|6.5}}
|
1 | 1 |
{{#invoke:random|number|-6.5}}
|
-6 | -2 |
{{#invoke:random|number|-16.5|-6.5}}
|
-12.5 | -15.5 |
Date
| Code | Main | Sandbox |
|---|---|---|
{{#invoke:random|date}}
|
23:48, 08 March 2026 (UTC) | 00:27, 07 October 2026 (UTC) |
{{#invoke:random|date|1 Jan 2000}}
|
22:30, 14 June 1980 (UTC) | 16:11, 04 May 1991 (UTC) |
{{#invoke:random|date|1 Jan 2000|27 July 2176}}
|
13:48, 25 October 2048 (UTC) | 00:06, 21 April 2173 (UTC) |
{{#invoke:random|date|1000|2000|format=Y}}
|
1330 | 1116 |
{{#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/01/01 18:56 | 2026/10/04 15:24 |