RateBasedSampler constructor

RateBasedSampler(
  1. double sampleRate
)

sampleRate should be between 0 and 1

Implementation

RateBasedSampler(this.sampleRate) {
  try {
    random = Random.secure();
  } on UnsupportedError {
    random = Random();
  }
}