Documentation ¶
Index ¶
- func RandBigInt() *big.Int
- func RandBigIntN(n *big.Int) *big.Int
- func RandBigIntRange(min, max *big.Int) *big.Int
- func RandBool() bool
- func RandBuff(size int) []byte
- func RandFloat32() float32
- func RandFloat64() float64
- func RandFloat64Range(min, max float64) float64
- func RandHex(maxSize int) string
- func RandInt32() int32
- func RandInt64() int64
- func RandIntRange(min, max int) int
- func RandString(length int) string
- func RandUint32() uint32
- func RandUint64() uint64
- type Mutator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandBigIntN ¶
RandBigIntN returns a random big.Int value in range [0, n)
func RandBigIntRange ¶
RandBigIntRange returns a random big.Int value within the specified range [min, max]
func RandFloat32 ¶
func RandFloat32() float32
RandFloat32 returns a random float32 value (0.0 to 1.0)
func RandFloat64 ¶
func RandFloat64() float64
RandFloat64 returns a random float64 value (0.0 to 1.0)
func RandFloat64Range ¶
RandFloat64Range returns a random float64 within the specified range [min, max]
func RandIntRange ¶
RandIntRange returns a random integer within the specified range [min, max]
func RandString ¶
RandString generates a random string of specified length
Types ¶
type Mutator ¶
type Mutator struct {
// contains filtered or unexported fields
}
func NewMutator ¶
func (*Mutator) MutateBytes ¶
func (*Mutator) MutateRest ¶
Click to show internal directories.
Click to hide internal directories.