logo
👎 Deprecated since 0.8.0:

use rand::distributions::{WeightedIndex, WeightedError} instead

Available on crate feature alloc only.
Expand description

Weighted index sampling

This module is deprecated. Use crate::distributions::WeightedIndex and crate::distributions::WeightedError instead.

Modules

alias_methodDeprecated

Structs

A distribution using weighted sampling of discrete items

Enums

Error type returned from WeightedIndex::new.