//! [`RandomAvailable`] - random choice among eligible candidates (`rand` feature).
use ;
/// Picks a random available candidate.
///
/// Only available with the `rand` feature.
///
/// # Example
///
/// ```rust
/// use bubbles::saliency::{Candidate, RandomAvailable, SaliencyStrategy};
///
/// let mut s = RandomAvailable;
/// let candidates = vec![
/// Candidate { id: "a", available: false },
/// Candidate { id: "b", available: true },
/// Candidate { id: "c", available: true },
/// ];
/// let idx = s.select(&candidates);
/// assert!(idx == Some(1) || idx == Some(2));
/// ```
;