Jump to content

Module:Random/testcases

විකිපීඩියා වෙතින්

සැකිල්ල:Test cases

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
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
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
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
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
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
Code Main Sandbox
{{#invoke:random|bulleted_list|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
  • beans
  • sausage
  • bacon
  • Lobster Thermidor
  • spam
  • egg
  • bacon
  • beans
  • egg
  • Lobster Thermidor
  • sausage
  • spam
{{#invoke:random|bulleted_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|style=color: green}}
  • egg
  • spam
  • beans
  • sausage
  • bacon
  • Lobster Thermidor
  • egg
  • spam
  • beans
  • bacon
  • Lobster Thermidor
  • sausage
{{#invoke:random|bulleted_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|item2_style=color: green|item4_style=color: orange}}
  • beans
  • Lobster Thermidor
  • spam
  • sausage
  • egg
  • bacon
  • egg
  • Lobster Thermidor
  • spam
  • sausage
  • bacon
  • beans
{{#invoke:random|bulleted_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|limit=4}}
  • beans
  • spam
  • sausage
  • egg
  • sausage
  • spam
  • egg
  • Lobster Thermidor

Unbulleted list

[සංස්කරණය]
Code Main Sandbox
{{#invoke:random|unbulleted_list|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
  • bacon
  • spam
  • beans
  • Lobster Thermidor
  • sausage
  • egg
  • egg
  • sausage
  • Lobster Thermidor
  • spam
  • bacon
  • beans
{{#invoke:random|unbulleted_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|style=color: green}}
  • Lobster Thermidor
  • beans
  • bacon
  • spam
  • egg
  • sausage
  • sausage
  • egg
  • beans
  • bacon
  • Lobster Thermidor
  • spam
{{#invoke:random|unbulleted_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|item2_style=color: green|item4_style=color: orange}}
  • spam
  • Lobster Thermidor
  • beans
  • egg
  • sausage
  • bacon
  • sausage
  • spam
  • bacon
  • beans
  • egg
  • Lobster Thermidor
{{#invoke:random|unbulleted_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|limit=4}}
  • beans
  • spam
  • Lobster Thermidor
  • bacon
  • beans
  • egg
  • Lobster Thermidor
  • spam

Horizontal list

[සංස්කරණය]
Code Main Sandbox
{{#invoke:random|horizontal_list|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
  • Lobster Thermidor
  • egg
  • bacon
  • spam
  • sausage
  • beans
  • spam
  • egg
  • beans
  • Lobster Thermidor
  • bacon
  • sausage
{{#invoke:random|horizontal_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|style=color: green}}
  • bacon
  • spam
  • Lobster Thermidor
  • egg
  • beans
  • sausage
  • spam
  • sausage
  • beans
  • Lobster Thermidor
  • bacon
  • egg
{{#invoke:random|horizontal_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|item2_style=color: green|item4_style=color: orange}}
  • sausage
  • spam
  • Lobster Thermidor
  • beans
  • egg
  • bacon
  • beans
  • egg
  • bacon
  • sausage
  • Lobster Thermidor
  • spam
{{#invoke:random|horizontal_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|limit=4}}
  • Lobster Thermidor
  • spam
  • beans
  • egg
  • spam
  • egg
  • sausage
  • Lobster Thermidor
Code Main Sandbox
{{#invoke:random|ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
  1. bacon
  2. beans
  3. egg
  4. Lobster Thermidor
  5. spam
  6. sausage
  1. bacon
  2. Lobster Thermidor
  3. beans
  4. sausage
  5. egg
  6. spam
{{#invoke:random|ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|style=color: green}}
  1. egg
  2. spam
  3. Lobster Thermidor
  4. beans
  5. sausage
  6. bacon
  1. egg
  2. sausage
  3. spam
  4. bacon
  5. Lobster Thermidor
  6. beans
{{#invoke:random|ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|item2_style=color: green|item4_style=color: orange}}
  1. beans
  2. sausage
  3. spam
  4. egg
  5. Lobster Thermidor
  6. bacon
  1. bacon
  2. Lobster Thermidor
  3. spam
  4. egg
  5. sausage
  6. beans
{{#invoke:random|ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|list_style_type=lower greek}}
  1. beans
  2. Lobster Thermidor
  3. bacon
  4. spam
  5. egg
  6. sausage
  1. sausage
  2. Lobster Thermidor
  3. egg
  4. spam
  5. beans
  6. bacon
{{#invoke:random|ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|type=I}}
  1. spam
  2. egg
  3. sausage
  4. beans
  5. Lobster Thermidor
  6. bacon
  1. Lobster Thermidor
  2. bacon
  3. spam
  4. sausage
  5. beans
  6. egg
{{#invoke:random|ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|limit=4}}
  1. beans
  2. egg
  3. Lobster Thermidor
  4. sausage
  1. bacon
  2. beans
  3. sausage
  4. egg

Horizontal ordered list

[සංස්කරණය]
Code Main Sandbox
{{#invoke:random|horizontal_ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
  1. Lobster Thermidor
  2. egg
  3. beans
  4. sausage
  5. bacon
  6. spam
  1. beans
  2. spam
  3. Lobster Thermidor
  4. bacon
  5. sausage
  6. egg
{{#invoke:random|horizontal_ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|style=color: green}}
  1. Lobster Thermidor
  2. spam
  3. egg
  4. beans
  5. sausage
  6. bacon
  1. bacon
  2. beans
  3. Lobster Thermidor
  4. egg
  5. sausage
  6. spam
{{#invoke:random|horizontal_ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|item2_style=color: green|item4_style=color: orange}}
  1. Lobster Thermidor
  2. sausage
  3. bacon
  4. egg
  5. spam
  6. beans
  1. beans
  2. bacon
  3. Lobster Thermidor
  4. egg
  5. spam
  6. sausage
{{#invoke:random|horizontal_ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|limit=4}}
  1. egg
  2. Lobster Thermidor
  3. sausage
  4. bacon
  1. sausage
  2. Lobster Thermidor
  3. spam
  4. egg
Code Main Sandbox
{{#invoke:random|link|Aristotle}} Script error: The function "link" does not exist. Script error: The function "link" does not exist.
"https://si.wikipedia.org/w/index.php?title=Module:Random/testcases&oldid=690476" වෙතින් සම්ප්‍රවේශනය කෙරිණි