package
1.1.4
Repository: https://github.com/cockroachdb/pebble.git
Documentation: pkg.go.dev

# Functions

NewBytesFlag creates a new BytesFlag initialized with the specified spec.
NewDeck returns a new deck random number generator.
NewDefaultSkewedLatest constructs a new SkewedLatest generator with the default parameters.
NewDefaultZipf constructs a new Zipf generator with the default parameters.
NewFlag creates a new Flag initialized with the specified spec.
NewRand creates a new random number generator seeded with the current time.
NewSkewedLatest constructs a new SkewedLatest generator with the given parameters.
NewUniform constructs a new Uniform generator with the given parameters.
NewWeighted returns a new weighted random number generator.
NewZipf constructs a new Zipf generator with the given parameters.

# Structs

BytesFlag provides a command line flag interface for specifying random bytes.
Deck is a random number generator that generates numbers in the range [0,len(weights)-1] where the probability of i is weights(i)/sum(weights).
Flag provides a command line flag interface for specifying static random variables.
SkewedLatest is a random number generator that generates numbers in the range [min, max], but skews it towards max using a zipfian distribution.
Uniform is a random number generator that generates draws from a uniform distribution.
Weighted is a random number generator that generates numbers in the range [0,len(weights)-1] where the probability of i is weights(i)/sum(weights).
Zipf is a random number generator that generates random numbers from a Zipf distribution.

# Interfaces

Dynamic models a random variable that pulls from a distribution with an upper bound that can change dynamically using the IncMax method.
Static models a random variable that pulls from a distribution with static bounds.