Module:Random/testcases
Appearance
Number
[සංස්කරණය]Code | Main | Sandbox |
---|---|---|
{{#invoke:random|number}}
|
0.99235796881484 | 0.94564493091109 |
{{#invoke:random|number|10}}
|
2 | 7 |
{{#invoke:random|number|10|20}}
|
20 | 11 |
{{#invoke:random|number|500000}}
|
467303 | 159659 |
{{#invoke:random|number|-10}}
|
0 | -3 |
{{#invoke:random|number|20|10}}
|
18 | 20 |
{{#invoke:random|number|-100|-50}}
|
-93 | -84 |
{{#invoke:random|number|6.5}}
|
7 | 5 |
{{#invoke:random|number|-6.5}}
|
0 | -4 |
{{#invoke:random|number|-16.5|-6.5}}
|
-7.5 | -16.5 |
- Test randomness with the same input
Code | Main | Sandbox |
---|---|---|
{{#invoke:random|number}}
|
0.65866619006669 | 0.85485904983005 |
{{#invoke:random|number}}
|
0.93120207354948 | 0.71325556873961 |
{{#invoke:random|number}}
|
0.52075673850288 | 0.81504626656652 |
{{#invoke:random|number}}
|
0.18247259277034 | 0.37866497569655 |
{{#invoke:random|number}}
|
0.1607189481895 | 0.9427724438453 |
{{#invoke:random|number}}
|
0.7243376577852 | 0.50590334856226 |
{{#invoke:random|number}}
|
0.70258448957586 | 0.85157603018525 |
{{#invoke:random|number}}
|
0.21900235638907 | 0.00056757032897676 |
{{#invoke:random|number}}
|
0.19724871134257 | 0.97930268383552 |
{{#invoke:random|number}}
|
0.76086789777543 | 0.9570607575388 |
{{#invoke:random|number|1000}}
|
11 | 622 |
{{#invoke:random|number|1000}}
|
560 | 111 |
{{#invoke:random|number|1000}}
|
725 | 340 |
{{#invoke:random|number|1000}}
|
513 | 686 |
{{#invoke:random|number|1000}}
|
859 | 50 |
{{#invoke:random|number|1000}}
|
206 | 379 |
{{#invoke:random|number|1000}}
|
253 | 427 |
{{#invoke:random|number|1000}}
|
923 | 96 |
{{#invoke:random|number|1000}}
|
257 | 443 |
{{#invoke:random|number|1000}}
|
616 | 368 |
Same number
[සංස්කරණය]Code | Main | Sandbox |
---|---|---|
{{#invoke:random|number|same=yes}}
|
0.0047332202106403 | 0.0047332202106403 |
{{#invoke:random|number|same=yes|10}}
|
9 | 9 |
{{#invoke:random|number|same=yes|10|20}}
|
19 | 19 |
{{#invoke:random|number|same=yes|500000}}
|
448314 | 448314 |
{{#invoke:random|number|same=yes|-10}}
|
-8 | -8 |
{{#invoke:random|number|same=yes|20|10}}
|
19 | 19 |
{{#invoke:random|number|same=yes|-100|-50}}
|
-55 | -55 |
{{#invoke:random|number|same=yes|6.5}}
|
6 | 6 |
{{#invoke:random|number|same=yes|-6.5}}
|
-5 | -5 |
{{#invoke:random|number|same=yes|-16.5|-6.5}}
|
-7.5 | -7.5 |
- Test randomness with the same input
Code | Main | Sandbox |
---|---|---|
{{#invoke:random|number|same=yes}}
|
0.0047332202106403 | 0.0047332202106403 |
{{#invoke:random|number|same=yes}}
|
0.0047332202106403 | 0.0047332202106403 |
{{#invoke:random|number|same=yes}}
|
0.0047332202106403 | 0.0047332202106403 |
{{#invoke:random|number|same=yes}}
|
0.0047332202106403 | 0.0047332202106403 |
{{#invoke:random|number|same=yes}}
|
0.0047332202106403 | 0.0047332202106403 |
{{#invoke:random|number|same=yes}}
|
0.0047332202106403 | 0.0047332202106403 |
{{#invoke:random|number|same=yes}}
|
0.0047332202106403 | 0.0047332202106403 |
{{#invoke:random|number|same=yes}}
|
0.0047332202106403 | 0.0047332202106403 |
{{#invoke:random|number|same=yes}}
|
0.0047332202106403 | 0.0047332202106403 |
{{#invoke:random|number|same=yes}}
|
0.0047332202106403 | 0.0047332202106403 |
{{#invoke:random|number|same=yes|1000}}
|
897 | 897 |
{{#invoke:random|number|same=yes|1000}}
|
897 | 897 |
{{#invoke:random|number|same=yes|1000}}
|
897 | 897 |
{{#invoke:random|number|same=yes|1000}}
|
897 | 897 |
{{#invoke:random|number|same=yes|1000}}
|
897 | 897 |
{{#invoke:random|number|same=yes|1000}}
|
897 | 897 |
{{#invoke:random|number|same=yes|1000}}
|
897 | 897 |
{{#invoke:random|number|same=yes|1000}}
|
897 | 897 |
{{#invoke:random|number|same=yes|1000}}
|
897 | 897 |
{{#invoke:random|number|same=yes|1000}}
|
897 | 897 |
Date
[සංස්කරණය]Code | Main | Sandbox |
---|---|---|
{{#invoke:random|date}}
|
20:08, 20 ජූනි 2024 (UTC) | 09:04, 26 නොවැම්බර් 2024 (UTC) |
{{#invoke:random|date|1 Jan 2000}}
|
14:20, 22 නොවැම්බර් 1974 (UTC) | 03:55, 21 ජූනි 1999 (UTC) |
{{#invoke:random|date|1 Jan 2000|27 July 2176}}
|
13:02, 21 මාර්තු 2073 (UTC) | 20:18, 13 ජූනි 2020 (UTC) |
{{#invoke:random|date|1000|2000|format=Y}}
|
1053 | 1432 |
{{#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/02/26 23:19 | 2024/12/22 15:29 |
Item
[සංස්කරණය]Code | Main | Sandbox |
---|---|---|
{{#invoke:random|item|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
|
bacon | bacon |
{{#invoke:random|item|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
|
egg | spam |
List
[සංස්කරණය]Code | Main | Sandbox |
---|---|---|
{{#invoke:random|list|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
|
beansbaconsausagespamLobster Thermidoregg | beansbaconeggsausageLobster Thermidorspam |
{{#invoke:random|list|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
|
Lobster Thermidorspambaconeggbeanssausage | sausagebeansbaconLobster Thermidoreggspam |
{{#invoke:random|list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=dot}}
|
egg • bacon • Lobster Thermidor • sausage • spam • beans | beans • sausage • spam • egg • Lobster Thermidor • bacon |
{{#invoke:random|list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=pipe}}
|
bacon | sausage | egg | Lobster Thermidor | spam | bacon | sausage | egg | spam | Lobster Thermidor |
{{#invoke:random|list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=comma}}
|
egg, spam, beans, bacon, sausage, Lobster Thermidor | beans, egg, sausage, Lobster Thermidor, spam, bacon |
{{#invoke:random|list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=tpt-languages}}
|
beans⧼tpt-languages-separator⧽sausage⧼tpt-languages-separator⧽egg⧼tpt-languages-separator⧽bacon⧼tpt-languages-separator⧽Lobster Thermidor⧼tpt-languages-separator⧽spam | egg⧼tpt-languages-separator⧽sausage⧼tpt-languages-separator⧽bacon⧼tpt-languages-separator⧽Lobster Thermidor⧼tpt-languages-separator⧽beans⧼tpt-languages-separator⧽spam |
{{#invoke:random|list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=space}}
|
egg beans sausage bacon spam Lobster Thermidor | egg beans sausage bacon Lobster Thermidor spam |
{{#invoke:random|list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=...}}
|
beans...sausage...Lobster Thermidor...spam...bacon...egg | spam...beans...bacon...Lobster Thermidor...egg...sausage |
{{#invoke:random|list|egg|spam|beans|sausage|bacon|Lobster Thermidor|limit=4}}
|
beansspamLobster Thermidoregg | eggsausagebaconLobster Thermidor |
Text list
[සංස්කරණය]Code | Main | Sandbox |
---|---|---|
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
|
sausage, bacon, spam, beans, Lobster Thermidor සහ egg | spam, bacon, egg, beans, sausage සහ Lobster Thermidor |
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
|
egg, bacon, beans, Lobster Thermidor, spam සහ sausage | sausage, Lobster Thermidor, spam, egg, bacon සහ beans |
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=dot}}
|
sausage • bacon • egg • Lobster Thermidor • beans සහ spam | spam • bacon • beans • sausage • Lobster Thermidor සහ egg |
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=pipe}}
|
Lobster Thermidor | bacon | egg | beans සහ sausage | bacon | sausage | spam | beans සහ egg |
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=comma}}
|
bacon, Lobster Thermidor, egg, beans, sausage සහ spam | Lobster Thermidor, spam, bacon, sausage, beans සහ egg |
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=tpt-languages}}
|
sausage⧼tpt-languages-separator⧽Lobster Thermidor⧼tpt-languages-separator⧽spam⧼tpt-languages-separator⧽beans⧼tpt-languages-separator⧽egg සහ bacon | beans⧼tpt-languages-separator⧽egg⧼tpt-languages-separator⧽Lobster Thermidor⧼tpt-languages-separator⧽spam⧼tpt-languages-separator⧽sausage සහ bacon |
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=space}}
|
spam beans Lobster Thermidor sausage egg සහ bacon | spam Lobster Thermidor beans egg sausage සහ bacon |
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=...}}
|
egg...sausage...spam...beans...Lobster Thermidor සහ bacon | spam...sausage...bacon...Lobster Thermidor...beans සහ egg |
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|sep=space|conj=...}}
|
beans Lobster Thermidor sausage spam egg...bacon | sausage beans bacon spam Lobster Thermidor...egg |
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|conj=... and }}
|
egg, sausage, beans, spam, bacon... and Lobster Thermidor | egg, beans, sausage, Lobster Thermidor, bacon... and spam |
{{#invoke:random|text_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|limit=4}}
|
sausage, spam, Lobster Thermidor සහ bacon | spam, bacon, sausage සහ beans |
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. |