(random-roll) ( #dice #sides rnd -- n )


Vocabulary
dice

Inputs
#dicean object
#sidesan object
rndan object


Outputs
nan object


Definition


: (random-roll) ( #dice #sides rnd -- n )
[ 0 ] 3dip '[ _ _ random* + 1 + ] times ;