diff --git a/types/simulation/rand_util.go b/types/simulation/rand_util.go index e5ec88fd70..9432a48d96 100644 --- a/types/simulation/rand_util.go +++ b/types/simulation/rand_util.go @@ -100,12 +100,12 @@ func RandTimestamp(r *rand.Rand) time.Time { return time.Unix(rtime, 0) } -// RandIntBetween returns a random int between two numbers inclusively. +// RandIntBetween returns a random int in the range [min, max) using a given source of randomness. func RandIntBetween(r *rand.Rand, min, max int) int { return r.Intn(max-min) + min } -// returns random subset of the provided coins +// RandSubsetCoins returns random subset of the provided coins // will return at least one coin unless coins argument is empty or malformed // i.e. 0 amt in coins func RandSubsetCoins(r *rand.Rand, coins sdk.Coins) sdk.Coins {