We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1360bcc commit ab2a51bCopy full SHA for ab2a51b
testing/helper/helper.go
@@ -95,5 +95,5 @@ func RandBool() bool {
95
}
96
97
func RandInt(from, to int) int {
98
- return from + rand.Intn(to+1)
+ return from + rand.Intn((to-from)+1)
99
0 commit comments