Skip to main content

Module random

Module random 

Source
Expand description

Iterators that generate maps randomly.

Structs§

RandomBTreeMaps
Generates random BTreeMaps with sizes from an iterator.
RandomBTreeMapsFixedSize
Generates random BTreeMaps of a fixed size.
RandomBTreeMapsWithUniqueValueCount
Generates random BTreeMaps with a restricted number of distinct values.
RandomHashMaps
Generates random HashMaps with sizes from an iterator.
RandomHashMapsFixedSize
Generates random HashMaps of a fixed size.
RandomHashMapsWithUniqueValueCount
Generates random HashMaps with a restricted number of distinct values.

Functions§

random_b_tree_maps
Generates random BTreeMaps with keys from one iterator and values from another.
random_b_tree_maps_fixed_size
Generates random BTreeMaps of a given size, with keys from one iterator and values from another.
random_b_tree_maps_fixed_unique_value_count
Generates random BTreeMaps with a given number of distinct values, with keys from one iterator and values from another.
random_b_tree_maps_from_size_iterator
Generates random BTreeMaps with keys from one iterator, values from another, and sizes from a third.
random_b_tree_maps_min_size
Generates random BTreeMaps with a minimum size, with keys from one iterator and values from another.
random_b_tree_maps_size_and_unique_value_count_inclusive_range
Generates random BTreeMaps whose size is in the closed interval $[\text{size_a}, \text{size_b}]$ and whose number of distinct values is in the closed interval $[\text{unique_value_count_a}, \text{unique_value_count_b}]$, with keys from one iterator and values from another.
random_b_tree_maps_size_inclusive_range
Generates random BTreeMaps with sizes in the closed interval $[a, b]$, with keys from one iterator and values from another.
random_b_tree_maps_size_range
Generates random BTreeMaps with sizes in the half-open interval $[a, b)$, with keys from one iterator and values from another.
random_b_tree_maps_unique_value_count_inclusive_range
Generates random BTreeMaps whose number of distinct values is in the closed interval $[a, b]$, with keys from one iterator and values from another.
random_b_tree_maps_unique_value_count_range
Generates random BTreeMaps whose number of distinct values is in the half-open interval $[a, b)$, with keys from one iterator and values from another.
random_hash_maps
Generates random HashMaps with keys from one iterator and values from another.
random_hash_maps_fixed_size
Generates random HashMaps of a given size, with keys from one iterator and values from another.
random_hash_maps_fixed_unique_value_count
Generates random HashMaps with a given number of distinct values, with keys from one iterator and values from another.
random_hash_maps_from_size_iterator
Generates random HashMaps with keys from one iterator, values from another, and sizes from a third.
random_hash_maps_min_size
Generates random HashMaps with a minimum size, with keys from one iterator and values from another.
random_hash_maps_size_and_unique_value_count_inclusive_range
Generates random HashMaps whose size is in the closed interval $[\text{size_a}, \text{size_b}]$ and whose number of distinct values is in the closed interval $[\text{unique_value_count_a}, \text{unique_value_count_b}]$, with keys from one iterator and values from another.
random_hash_maps_size_inclusive_range
Generates random HashMaps with sizes in the closed interval $[a, b]$, with keys from one iterator and values from another.
random_hash_maps_size_range
Generates random HashMaps with sizes in the half-open interval $[a, b)$, with keys from one iterator and values from another.
random_hash_maps_unique_value_count_inclusive_range
Generates random HashMaps whose number of distinct values is in the closed interval $[a, b]$, with keys from one iterator and values from another.
random_hash_maps_unique_value_count_range
Generates random HashMaps whose number of distinct values is in the half-open interval $[a, b)$, with keys from one iterator and values from another.