Added go mod, imply one die in absence of count
This commit is contained in:
parent
1a00e389db
commit
265ca354a4
3
main.go
3
main.go
@ -20,6 +20,9 @@ func main() {
|
|||||||
parm = os.Args[1] + "d" + os.Args[2]
|
parm = os.Args[1] + "d" + os.Args[2]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if strings.HasPrefix(parm, "d") {
|
||||||
|
parm = "1" + parm
|
||||||
|
}
|
||||||
|
|
||||||
r = rand.New(rand.NewSource(time.Now().UnixNano()))
|
r = rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||||
num, sides, times := parseParm(parm)
|
num, sides, times := parseParm(parm)
|
||||||
|
Loading…
Reference in New Issue
Block a user