Function group | Execute on client | Platform(s) |
---|---|---|
Random | NO | All |
rolldice(number,faces)
Returns the result of a die roll. You specify the number of dice to roll and the number of faces on each die.
Calculate lResult as rolldice(2,6)
# "rolls" two normal, six-sided dice and puts the result in lResult