Multi-dimensional weighted random roll (choice, dice, selection)

Suppose that you want to roll a 6-sided die in APL. That&apos;s trivial: ?6 0 ?6 4 ?6 0 ?6 3 Now suppose that you wanted to roll a bunch of times. APL naturally scales, since the "roll" function ? is a primitive scalar function: ?10&