percentage

fun percentage(samplePercentage: Int): Sampler

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

Return

percentage Sampler instance

Parameters

samplePercentage

percentage chance of positive results