N টি উপাদান থেকে দৈবভাবে একটি উপাদান প্রকাশ করে।

ব্যবহার

সম্পাদনা
  • {{random item|item1|item2|...|itemN}}
  • All calls to the function using |same=y with the same number of items will return the same item.

পরামিতি

সম্পাদনা
  • |1=..|2=..|N= --> The items to return.
  • |same=y Set to a truthy value for all calls with this parameter set and the same number of items to return the same item.
  • There use to be a |range= parameter, but this is no longer needed.

উদাহরণ

সম্পাদনা

শোধন

  • {{Random item|অ|আ|ই|ঈ|ক|খ|গ|ঘ|১|২|৩|৪}} --> ২
  • {{Random item|অ|আ|ই|ঈ|ক|খ|গ|ঘ|১|২|৩|৪}} --> ঘ
  • {{Random item|অ|আ|ই|ঈ|ক|খ|গ|ঘ|১|২|৩|৪}} --> গ
  • {{Random item|অ|আ|ই|ঈ|ক|খ|গ|ঘ|১|২|৩|৪|same=y}} --> গ
  • {{Random item|অ|আ|ই|ঈ|ক|খ|গ|ঘ|১|২|৩|৪|same=y}} --> গ
  • {{Random item|অ|আ|ই|ঈ|ক|খ|গ|ঘ|১|২|৩|৪|same=y}} --> গ

আরো দেখুন

সম্পাদনা