Skip to content

getFrequencyValue() ​

Returns true with the provided probability from 0 to 1.

Example:

ts
const shouldRun = getFrequencyValue(0.25);

Released under the MIT License.