Added go mod, imply one die in absence of count

This commit is contained in:
Brian Buller 2021-11-30 17:51:14 -06:00
parent 1a00e389db
commit 265ca354a4

View File

@ -20,6 +20,9 @@ func main() {
parm = os.Args[1] + "d" + os.Args[2]
}
}
if strings.HasPrefix(parm, "d") {
parm = "1" + parm
}
r = rand.New(rand.NewSource(time.Now().UnixNano()))
num, sides, times := parseParm(parm)