rolldice()

Function group Execute on client Platform(s)
Random NO All

Syntax

rolldice(number,faces)

Description

Returns the result of a die roll. You specify the number of dice to roll and the number of faces on each die.

Example

Calculate lResult as  rolldice(2,6)
# "rolls" two normal, six-sided dice and puts the result in lResult