Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator interface {
Int() int
}
Generator is a pseudo-random numbers generator.
func Exponential ¶
Exponential returns a Generator resembling an exponential distribution.
func Hotspot ¶
Hotspot returns a Generator resembling a hotspot distribution. hotFrac is the fraction of total items which have a proportion (1.0-hotFrac).
Click to show internal directories.
Click to hide internal directories.