Post History
Jelly, 4 bytes X}€S Try it online! How it works X}€S - Main link. Takes n on the left, m on the right € - Over each element of 1 through n: } - With m as its argument: X - Y...
#1: Initial revision
# [Jelly], 4 bytes
X}€S
[Try it online!][TIO-kssbhrcf]
[Jelly]: https://github.com/DennisMitchell/jelly
[TIO-kssbhrcf]: https://tio.run/##y0rNyan8/z@i9lHTmuD///@b/jcDAA "Jelly – Try It Online"
## How it works
X}€S - Main link. Takes n on the left, m on the right
€ - Over each element of 1 through n:
} - With m as its argument:
X - Yield a random integer from 1 to m
S - Sum
