Function set_random_wallpapers_from_vec

Source
pub fn set_random_wallpapers_from_vec<P>(
    wallpapers: Vec<P>,
    default_wallpaper: P,
    mode: Mode,
) -> Result<Vec<Utf8PathBuf>, WallpaperError>
where P: AsRef<Utf8Path> + Clone,
Available on crate feature rand only.
Expand description

Like set_wallpapers_from_vec, but map the wallpapers randomly to the screens. Selecting the same wallpaper multiple time will be avoid, if this is possible.