Companion

object Companion

Functions

Link copied to clipboard
fun always(): Sampler

Creates a Sampler that always returns positive results.

Link copied to clipboard
fun percentage(samplePercentage: Int): Sampler

Creates a Sampler that limits positive results to a percentage chance.

Link copied to clipboard
fun rateLimiting(ratePerSecond: Long): Sampler

Creates a Sampler that limits positive results to a limited rate per second.