dice function

Throw a fair dice (with a given number of sides) n times.