docs.roxen.comView this page in a printer friendly mode
DocsRoxenWebServer 5.4Web Developer ManualText Tags
Copyright © 2018, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com
 DEMO  DOCS  PIKE
 COMMUNITY  DOWNLOAD
www.roxen.com

   

<ai>
<autoformat>
<basename>
<case>
<charset>
<comment>
<?comment ?>
<default>
<dirname>
<doc>
<foldlist>
<format-number>
<obox>
<random>
<recode>
<replace>
<sed>
<smallcaps>
<sort>
<spell>
<strlen>
<substring>
<tablify>
<trim>
<trimlines>
<wash-html>

<random></random>

Provided by module: Tags: RXML tags

Randomly chooses a message from its contents, or returns an integer within a given range.


Attributes

range="integer"

The random range, from 0 up to but not including the range integer.

<random range='10'/>
3

separator="string"

The separator used to separate the messages, by default newline.

<random separator='#'>Foo#Bar#Baz</random>
Bar

seed="string"

Enables you to use a seed that determines which message to choose.

Tip of the day: <set variable='var.day'><date type='iso' date=''/></set> <random seed='var.day'><insert file='tips.txt'/></random>