Post History
Python 3, 61 bytes lambda n,m:sum(randint(1,m)for i in[0]*n) from random import* Try it online! This is not an interesting answer as it is just a copy of your code. I tried to do it with ch...
Answer
#1: Initial revision
# [Python 3], 61 bytes <!-- language-all: lang-python --> lambda n,m:sum(randint(1,m)for i in[0]*n) from random import* [Try it online!][TIO-kssp1yqw] This is not an interesting answer as it is just a copy of your code. I tried to do it with choices but it's 1 byte longer : [Try it online!](https://tio.run/##DcixCoAgEADQva9wvAuXCCKCvqQaTDOl7hS1oa@3pgcvvsUF7qud13or2o0SLGnKD4F2wesjw9ImxecBnSTc5DUzYmNTIPG3@fEUQyptjclzAQujHBDrBw) [Python 3]: https://docs.python.org/3/ [TIO-kssp1yqw]: https://tio.run/##K6gsycjPM/6fZhvzPycxNyklUSFPJ9equDRXoygxLyUzr0TDUCdXMy2/SCFTITMv2iBWK0@TK60oP1cBJA@kMnML8otKtP4XFIEUp2lY6Jhpav4HAA "Python 3 – Try It Online"