~~rand($') is the same as int(rand($'))
In reply to Re^3: Dungeons and Dragons die roller (Golf) by tybalt89 in thread Dungeons and Dragons die roller (Golf) by zsl