Skip to content

Commit ab2a51b

Browse files
committed
Fix helper.RandInt
Math...
1 parent 1360bcc commit ab2a51b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/helper/helper.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,5 @@ func RandBool() bool {
9595
}
9696

9797
func RandInt(from, to int) int {
98-
return from + rand.Intn(to+1)
98+
return from + rand.Intn((to-from)+1)
9999
}

0 commit comments

Comments
 (0)