class_docstr: Interleave a random configuration according to a given probability.
  
  Parameters
  ----------
  probability : float
      Probability that a configuration will be drawn at random.
  seed : int, defaults to 0
      Integer used to initialize the random state.
class_docstr_tok: ["Interleave","a","random","configuration","according","to","a","given","probability",".","Parameters","--","--","--","--","--","probability",":","float","Probability","that","a","configuration","will","be","drawn","at","random",".","seed",":","int",",","defaults","to","0","Integer","used","to","initialize","the","random","state","."]
code: def check(self, iteration: int) -> bool:  # noqa: D102
      assert iteration >= 0
  
      if self._rng.rand() < self._probability:
          return True
      else:
          return False
  
file_path: SMAC3/smac/random_design/probability_design.py
imports: from __future__ import annotations
  from typing import Any
  from smac.random_design.abstract_random_design import AbstractRandomDesign
  from smac.utils.logging import get_logger
label_desc: Use image node_id 3 for calling the ProbabilityRandomDesign obj's underlying member method code with example usage: obj.check(iteration) and returns: True, False