# NOT RUN {
# Basics:
dice_2()
table(dice_2(100))
# 10-sided dice:
dice_2(sides = 10)
table(dice_2(100, sides = 10))
# Note:
dice_2(10, 1)
table(dice_2(5000, sides = 5))
# Note an oddity:
dice_2(n = 10, sides = 8:9) # works, but
dice_2(n = 10, sides = 9:9) # odd: see sample() for an explanation.
# }
Run the code above in your browser using DataLab