« Modèle:Random » : différence entre les versions

De Inkipédia
(copy-paste error)
 
m (1 révision importée)
 
(Aucune différence)

Dernière version du 4 juillet 2016 à 19:55

No type selected for {{random}}.

Syntax

{{random|<type=option>}} where option is:

  • bool (returns 0 or 1)
  • boolyn (returns no or yes)
  • coin (returns heads or tails)
  • dice (returns a number between 0 and 6)
  • int (returns a number between 0 and 9)
  • hex (returns a nibble between 0 and F)

Notes

  • If type is not specified, it prints a message (shown above).

Example

  • {{random|type=dice}} gives
  • 0
  • #{{random|type=hex}}{{random|type=hex}}{{random|type=hex}}{{random|type=hex}}{{random|type=hex}}{{random|type=hex}} gives
  • #C19D41 (useful for random color!)