Jump to content

Module:Random/testcases

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

සැකිල්ල:Test cases

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

Unbulleted list

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

Horizontal list

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

Horizontal ordered list

[සංස්කරණය]
Code Main Sandbox
{{#invoke:random|horizontal_ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor}}
  1. beans
  2. Lobster Thermidor
  3. sausage
  4. spam
  5. bacon
  6. egg
  1. sausage
  2. egg
  3. bacon
  4. Lobster Thermidor
  5. spam
  6. beans
{{#invoke:random|horizontal_ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|style=color: green}}
  1. spam
  2. egg
  3. beans
  4. bacon
  5. Lobster Thermidor
  6. sausage
  1. bacon
  2. Lobster Thermidor
  3. beans
  4. spam
  5. egg
  6. sausage
{{#invoke:random|horizontal_ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|item2_style=color: green|item4_style=color: orange}}
  1. bacon
  2. sausage
  3. beans
  4. egg
  5. spam
  6. Lobster Thermidor
  1. spam
  2. sausage
  3. Lobster Thermidor
  4. beans
  5. bacon
  6. egg
{{#invoke:random|horizontal_ordered_list|egg|spam|beans|sausage|bacon|Lobster Thermidor|limit=4}}
  1. spam
  2. beans
  3. sausage
  4. egg
  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" වෙතින් සම්ප්‍රවේශනය කෙරිණි