Tags Order A-Z Category Context

<sn:random-option>

An option for a <sn:random> tag. This tag may be given a weight that will influence how likely its selection will be relative to the other tags.

Attributes

  • integer < optional > The relative likelihood of this tag being selected randomly. Weights are relative to one another, thus a tag with 4 will be twice as likely to be selected as a tag with a weight of 2. Must be an int .

Valid Contexts

  • : The area where your app is displayed alone
  • : The Bebo profile page
  • : On a notification page (after the user has clicked on a link in the email)
  • : On the invitations page

Code

<sn:random pick="10" unique="false">
  <sn:random-option weight="2">1</sn:random-option>
  <sn:random-option>2</sn:random-option>
</sn:random>
Play with this code in the sandbox
2111122211