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.90633231257383 | 0.85822694974869 |
{{#invoke:random|number|10}}
|
9 | 4 |
{{#invoke:random|number|10|20}}
|
14 | 16 |
{{#invoke:random|number|500000}}
|
489171 | 198679 |
{{#invoke:random|number|-10}}
|
-7 | -3 |
{{#invoke:random|number|20|10}}
|
16 | 20 |
{{#invoke:random|number|-100|-50}}
|
-70 | -90 |
{{#invoke:random|number|6.5}}
|
4 | 1 |
{{#invoke:random|number|-6.5}}
|
-1 | -5 |
{{#invoke:random|number|-16.5|-6.5}}
|
-12.5 | -8.5 |
Date
| Code | Main | Sandbox |
|---|---|---|
{{#invoke:random|date}}
|
13:00, 08 April 2026 (UTC) | 10:28, 22 March 2026 (UTC) |
{{#invoke:random|date|1 Jan 2000}}
|
04:55, 14 November 1981 (UTC) | 00:10, 26 February 1993 (UTC) |
{{#invoke:random|date|1 Jan 2000|27 July 2176}}
|
20:05, 09 February 2057 (UTC) | 01:16, 07 August 2078 (UTC) |
{{#invoke:random|date|1000|2000|format=Y}}
|
1223 | 1454 |
{{#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/03 10:53 | 2026/12/24 15:15 |