Module:Random/testcases
Appearance
Number
[සංස්කරණය]Code | Main | Sandbox |
---|---|---|
{{#invoke:random|number}}
|
0.94875630268304 | 0.48692829091425 |
{{#invoke:random|number|10}}
|
3 | 9 |
{{#invoke:random|number|10|20}}
|
15 | 10 |
{{#invoke:random|number|500000}}
|
319865 | 480859 |
{{#invoke:random|number|-10}}
|
-6 | -2 |
{{#invoke:random|number|20|10}}
|
14 | 10 |
{{#invoke:random|number|-100|-50}}
|
-75 | -78 |
{{#invoke:random|number|6.5}}
|
3 | 4 |
{{#invoke:random|number|-6.5}}
|
0 | 0 |
{{#invoke:random|number|-16.5|-6.5}}
|
-8.5 | -15.5 |
- Test randomness with the same input
Code | Main | Sandbox |
---|---|---|
{{#invoke:random|number}}
|
0.42256664737247 | 0.20413186131238 |
{{#invoke:random|number}}
|
0.98618583380533 | 0.18237869310304 |
{{#invoke:random|number}}
|
0.33185851496265 | 0.52805137472602 |
{{#invoke:random|number}}
|
0.72424375765223 | 0.67704291533541 |
{{#invoke:random|number}}
|
0.45860860611247 | 0.65528927028891 |
{{#invoke:random|number}}
|
0.85197041176817 | 0.048163271065877 |
{{#invoke:random|number}}
|
0.24435613082925 | 0.63722965523472 |
{{#invoke:random|number}}
|
0.83391079624831 | 0.030103656011682 |
{{#invoke:random|number}}
|
0.64092368476136 | 0.25174419034819 |
{{#invoke:random|number}}
|
0.033797685538324 | 0.644617714288 |
{{#invoke:random|number|1000}}
|
892 | 942 |
{{#invoke:random|number|1000}}
|
761 | 562 |
{{#invoke:random|number|1000}}
|
722 | 895 |
{{#invoke:random|number|1000}}
|
68 | 99 |
{{#invoke:random|number|1000}}
|
856 | 29 |
{{#invoke:random|number|1000}}
|
848 | 958 |
{{#invoke:random|number|1000}}
|
566 | 187 |
{{#invoke:random|number|1000}}
|
369 | 841 |
{{#invoke:random|number|1000}}
|
30 | 203 |
{{#invoke:random|number|1000}}
|
376 | 549 |
Same number
[සංස්කරණය]Code | Main | Sandbox |
---|---|---|
{{#invoke:random|number|same=yes}}
|
0.45422419693983 | 0.45422419693983 |
{{#invoke:random|number|same=yes|10}}
|
4 | 4 |
{{#invoke:random|number|same=yes|10|20}}
|
13 | 13 |
{{#invoke:random|number|same=yes|500000}}
|
153556 | 153556 |
{{#invoke:random|number|same=yes|-10}}
|
-3 | -3 |
{{#invoke:random|number|same=yes|20|10}}
|
13 | 13 |
{{#invoke:random|number|same=yes|-100|-50}}
|
-85 | -85 |
{{#invoke:random|number|same=yes|6.5}}
|
2 | 2 |
{{#invoke:random|number|same=yes|-6.5}}
|
-1 | -1 |
{{#invoke:random|number|same=yes|-16.5|-6.5}}
|
-13.5 | -13.5 |
- Test randomness with the same input
Code | Main | Sandbox |
---|---|---|
{{#invoke:random|number|same=yes}}
|
0.45422419693983 | 0.45422419693983 |
{{#invoke:random|number|same=yes}}
|
0.45422419693983 | 0.45422419693983 |
{{#invoke:random|number|same=yes}}
|
0.45422419693983 | 0.45422419693983 |
{{#invoke:random|number|same=yes}}
|
0.45422419693983 | 0.45422419693983 |
{{#invoke:random|number|same=yes}}
|
0.45422419693983 | 0.45422419693983 |
{{#invoke:random|number|same=yes}}
|
0.45422419693983 | 0.45422419693983 |
{{#invoke:random|number|same=yes}}
|
0.45422419693983 | 0.45422419693983 |
{{#invoke:random|number|same=yes}}
|
0.45422419693983 | 0.45422419693983 |
{{#invoke:random|number|same=yes}}
|
0.45422419693983 | 0.45422419693983 |
{{#invoke:random|number|same=yes}}
|
0.45422419693983 | 0.45422419693983 |
{{#invoke:random|number|same=yes|1000}}
|
308 | 308 |
{{#invoke:random|number|same=yes|1000}}
|
308 | 308 |
{{#invoke:random|number|same=yes|1000}}
|
308 | 308 |
{{#invoke:random|number|same=yes|1000}}
|
308 | 308 |
{{#invoke:random|number|same=yes|1000}}
|
308 | 308 |
{{#invoke:random|number|same=yes|1000}}
|
308 | 308 |
{{#invoke:random|number|same=yes|1000}}
|
308 | 308 |
{{#invoke:random|number|same=yes|1000}}
|
308 | 308 |
{{#invoke:random|number|same=yes|1000}}
|
308 | 308 |
{{#invoke:random|number|same=yes|1000}}
|
308 | 308 |
Date
[සංස්කරණය]Code | Main | Sandbox |
---|---|---|
{{#invoke:random|date}}
|
15:16, 13 නොවැම්බර් 2024 (UTC) | 14:09, 10 නොවැම්බර් 2024 (UTC) |
{{#invoke:random|date|1 Jan 2000}}
|
18:12, 19 මැයි 1990 (UTC) | 19:32, 26 මැයි 1981 (UTC) |
{{#invoke:random|date|1 Jan 2000|27 July 2176}}
|
17:19, 28 මාර්තු 2146 (UTC) | 22:19, 16 පෙබරවාරි 2049 (UTC) |
{{#invoke:random|date|1000|2000|format=Y}}
|
1097 | 1475 |
{{#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}}
|
2024/10/04 13:34 | 2024/02/19 21:48 |
Item
[සංස්කරණය]Code | Main | Sandbox |
---|---|---|
{{#invoke:random|item|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
|
Lobster Thermidor | sausage |
{{#invoke:random|item|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
|
sausage | Lobster Thermidor |
List
[සංස්කරණය]Code | Main | Sandbox |
---|---|---|
{{#invoke:random|list|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
|
sausagebaconbeansLobster Thermidorspamegg | baconeggsausageLobster Thermidorbeansspam |
{{#invoke:random|list|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
|
spamsausagebaconbeansLobster Thermidoregg | eggspambeansbaconsausageLobster Thermidor |
{{#invoke:random|list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=dot}}
|
beans • sausage • spam • Lobster Thermidor • bacon • egg | sausage • egg • spam • Lobster Thermidor • bacon • beans |
{{#invoke:random|list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=pipe}}
|
beans | Lobster Thermidor | bacon | sausage | spam | beans | spam | egg | sausage | bacon |
{{#invoke:random|list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=comma}}
|
egg, beans, Lobster Thermidor, sausage, spam, bacon | egg, beans, sausage, bacon, Lobster Thermidor, spam |
{{#invoke:random|list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=tpt-languages}}
|
Lobster Thermidor⧼tpt-languages-separator⧽bacon⧼tpt-languages-separator⧽egg⧼tpt-languages-separator⧽spam⧼tpt-languages-separator⧽sausage⧼tpt-languages-separator⧽beans | Lobster Thermidor⧼tpt-languages-separator⧽beans⧼tpt-languages-separator⧽bacon⧼tpt-languages-separator⧽spam⧼tpt-languages-separator⧽sausage⧼tpt-languages-separator⧽egg |
{{#invoke:random|list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=space}}
|
bacon beans sausage Lobster Thermidor egg spam | beans Lobster Thermidor egg bacon spam sausage |
{{#invoke:random|list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=...}}
|
Lobster Thermidor...beans...bacon...spam...sausage...egg | egg...Lobster Thermidor...bacon...spam...sausage...beans |
{{#invoke:random|list|egg|spam|beans|sausage|bacon|Lobster Thermidor|limit=4}}
|
beansbaconeggspam | eggLobster Thermidorbeansbacon |
Text list
[සංස්කරණය]Code | Main | Sandbox |
---|---|---|
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
|
sausage, egg, spam, Lobster Thermidor, bacon සහ beans | beans, sausage, egg, spam, bacon සහ Lobster Thermidor |
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
|
egg, Lobster Thermidor, bacon, spam, sausage සහ beans | beans, sausage, egg, bacon, Lobster Thermidor සහ spam |
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=dot}}
|
spam • bacon • sausage • beans • egg සහ Lobster Thermidor | egg • sausage • Lobster Thermidor • beans • spam සහ bacon |
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=pipe}}
|
beans | Lobster Thermidor | spam | sausage සහ bacon | beans | egg | bacon | sausage සහ spam |
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=comma}}
|
egg, spam, bacon, beans, Lobster Thermidor සහ sausage | spam, Lobster Thermidor, beans, sausage, egg සහ bacon |
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=tpt-languages}}
|
Lobster Thermidor⧼tpt-languages-separator⧽beans⧼tpt-languages-separator⧽spam⧼tpt-languages-separator⧽egg⧼tpt-languages-separator⧽bacon සහ sausage | spam⧼tpt-languages-separator⧽beans⧼tpt-languages-separator⧽sausage⧼tpt-languages-separator⧽Lobster Thermidor⧼tpt-languages-separator⧽egg සහ bacon |
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=space}}
|
Lobster Thermidor bacon sausage beans egg සහ spam | spam bacon Lobster Thermidor beans egg සහ sausage |
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=...}}
|
Lobster Thermidor...spam...egg...beans...sausage සහ bacon | egg...bacon...beans...Lobster Thermidor...spam සහ sausage |
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=space|conj=...}}
|
beans egg Lobster Thermidor sausage bacon...spam | spam bacon sausage Lobster Thermidor beans...egg |
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|conj=... and }}
|
egg, bacon, Lobster Thermidor, beans, sausage... and spam | Lobster Thermidor, spam, egg, sausage, bacon... and beans |
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|limit=4}}
|
spam, egg, beans සහ sausage | beans, bacon, sausage සහ spam |
Bulleted list
[සංස්කරණය]Code | Main | Sandbox |
---|---|---|
{{#invoke:random|bulleted_list|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
|
|
|
{{#invoke:random|bulleted_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|style=color: green}}
|
|
|
{{#invoke:random|bulleted_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|item2_style=color: green|item4_style=color: orange}}
|
|
|
{{#invoke:random|bulleted_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|limit=4}}
|
|
|
Unbulleted list
[සංස්කරණය]Code | Main | Sandbox |
---|---|---|
{{#invoke:random|unbulleted_list|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
|
|
|
{{#invoke:random|unbulleted_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|style=color: green}}
|
|
|
{{#invoke:random|unbulleted_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|item2_style=color: green|item4_style=color: orange}}
|
|
|
{{#invoke:random|unbulleted_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|limit=4}}
|
|
|
Horizontal list
[සංස්කරණය]Code | Main | Sandbox |
---|---|---|
{{#invoke:random|horizontal_list|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
|
|
|
{{#invoke:random|horizontal_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|style=color: green}}
|
|
|
{{#invoke:random|horizontal_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|item2_style=color: green|item4_style=color: orange}}
|
|
|
{{#invoke:random|horizontal_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|limit=4}}
|
|
|
Ordered list
[සංස්කරණය]Code | Main | Sandbox |
---|---|---|
{{#invoke:random|ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
|
|
|
{{#invoke:random|ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|style=color: green}}
|
|
|
{{#invoke:random|ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|item2_style=color: green|item4_style=color: orange}}
|
|
|
{{#invoke:random|ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|list_style_type=lower greek}}
|
|
|
{{#invoke:random|ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|type=I}}
|
|
|
{{#invoke:random|ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|limit=4}}
|
|
|
Horizontal ordered list
[සංස්කරණය]Code | Main | Sandbox |
---|---|---|
{{#invoke:random|horizontal_ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
|
|
|
{{#invoke:random|horizontal_ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|style=color: green}}
|
|
|
{{#invoke:random|horizontal_ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|item2_style=color: green|item4_style=color: orange}}
|
|
|
{{#invoke:random|horizontal_ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|limit=4}}
|
|
|
Random link
[සංස්කරණය]Code | Main | Sandbox |
---|---|---|
{{#invoke:random|link|Aristotle}}
|
Script error: The function "link" does not exist. | Script error: The function "link" does not exist. |