Post History
#2: Post edited
# [Ruby], 32 bytes```ruby->n,m{(1..n).map{rand(m)+1}.sum}```[Try it online!][TIO-ksu48d1q]- [Ruby]: https://www.ruby-lang.org/
[TIO-ksu48d1q]: https://tio.run/##KypNqvyfZvtf1y5PJ7daw1BPL09TLzexoLooMS9FI1dT27BWr7g0t/Z/nq0pV66tGVdBaUmxQpqeBlC55n8A "Ruby – Try It Online"
- # [Ruby], 28 bytes
- <!-- language-all: lang-ruby -->
- ->n,m{(1..n).sum{rand(m)+1}}
- [Try it online!][TIO-l3clxseg]
- [Ruby]: https://www.ruby-lang.org/
- [TIO-l3clxseg]: https://tio.run/##KypNqvyfZvtf1y5PJ7daw1BPL09Tr7g0t7ooMS9FI1dT27C29n@erSlXrq0ZV0FpSbFCmp4GUKnmfwA "Ruby – Try It Online"