Game:Main Page/Editing Guideline/Random

From Uncyclopedia, the content-free encyclopedia

Jump to: navigation, search

Game List Editing Rules Editing Guides

edit Method 1 - <option>


<option weight=(optional)>(Text A)</option>

<option weight=(optional)>(Text B)</option>


“You can use it in quota template (B)”
~ This an example

and link too(a)

<option> is

edit massive use

<choose><option weight=1>a</option><option weight=1>b</option></choose>

b b a a b b a a b b

The result probably will repeats when you refresh the webpage.

edit Method 1 - Template:Rand

This template is using the time to generate a random number.

{{Rand| (range) | (seed) | (prime) }}


  • {{Rand}} 81
  • {{Rand|256}} 217
  • {{Rand|1000}} 481
  • {{Rand|1000|3.14}} 560

edit Add Minimum

{{#expr: (Minimum) + {{Rand|(Maxium-Minimum)+1)| (seed) | (prime) }}}}
  • {{#expr: 500 + {{Rand|500}}}}

500-999: 981

edit Pads the random number to the specified width

{{padleft:{{Rand| (range) | (seed) | (prime) }}| (digis) |0}}
  • {{padleft:{{Rand|9999}}|4|0}}

000-9999: 9345

edit Problem

Template:Rand is using time to generate random number, so two {{Rand}} will cause same result.

If no seed or prime is inputed, they will get same result.


17481, 17481, 17481

If you want to generate two random number, you should use Mod to separate a big number to two.

edit comparison

  • If you just want to display random test, it's more convenient to use <option>.
  • <option> cannot work in Parser Functions. Use {{Rand}}.
Personal tools