in reply to Dice roll chances

Another way is golf:
# 1 2 3 4 5 #2345678901234567890123456789012345678901234567890 @%=1..50;$%+=splice@%,rand@%,1for$]..9;print$%,$/
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: Dice roll chances
by danaj (Friar) on Nov 12, 2017 at 18:49 UTC

    Another way is golf

    Because what intro to programming grader doesn't love golfed and/or obfuscated code! The more devious and clever the better, they say.

    :)