random

The random element instructs the AIML interpreter to return
exactly one of its contained li elements randomly.

Element Information

Model

Children: li

Source

<xs:element name="random">
  <xs:annotation>
    <xs:documentation>The random element instructs the AIML interpreter to return exactly one of its contained li elements randomly.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="li" type="MixedTemplateContentContainer" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

Sample

I don't know whether or not I am

< person/>

. I am

a

< bot name = "kingdom" />

.

a

< bot name = "phylum" />

.

a

< bot name = "class" />

.

a

< bot name = "order" />

.

a

< bot name = "family" />

.

a

< bot name = "genus" />

.

a

< bot name = "species" />

.

well respected as an

< bot name = "class" />

.