Skip to content

Commit

Permalink
Fix helper.RandInt
Browse files Browse the repository at this point in the history
Math...
  • Loading branch information
PChambino committed Mar 17, 2024
1 parent 1360bcc commit ab2a51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/helper/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,5 @@ func RandBool() bool {
}

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

0 comments on commit ab2a51b

Please sign in to comment.