Documentation ¶
Index ¶
- func RandDurationBetween(r *rand.Rand, min, max int) time.Duration
- func RandInt(n int) int64
- func RandInt64(r *rand.Rand, max int) int64
- func RandIntBetween(r *rand.Rand, min, max int) int
- func RandIntBetweenWith0(r *rand.Rand, min, max int64) int64
- func RandIntWith0(r *rand.Rand, max int) int
- func RandPositiveInt(r *rand.Rand, max math.Int) (math.Int, error)
- func RandStringOfLength(n int) string
- func RandStringOfLengthCustomSeed(r *rand.Rand, n int) string
- func RandSubsetCoins(r *rand.Rand, coins sdk.Coins) sdk.Coins
- func RandTimestamp(r *rand.Rand) time.Time
- func RandomAmount(r *rand.Rand, max math.Int) math.Int
- func RandomBool(r *rand.Rand) bool
- func RandomDecAmount(r *rand.Rand, max sdk.Dec) sdk.Dec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandStringOfLength ¶
func RandStringOfLengthCustomSeed ¶
shamelessly copied from cosmos sdk github https://stackoverflow.com/questions/22892120/how-to-generate-a-random-string-of-a-fixed-length-in-golang#31832326
func RandomBool ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.