Module malachite_nz::integer::random
source · Expand description
Iterators that generate Integer
s randomly.
Structs§
- Generates random
Integer
s greater than or equal to a lower bound, or less than or equal to an upper bound. - Generates random
Integer
s, given an iterator of random signed bit lengths. - Generates striped random
Integer
s greater than or equal to a lower bound, or less than or equal to an upper bound. - Generates striped random
Integer
s, given an iterator of random signed bit lengths. - Uniformly generates random
Integer
s in an interval.
Enums§
Functions§
- Generates random
Integer
s in the closed interval $[a, b]$. - Generates random
Integer
s in the half-open interval $[a, b)$. - Generates random
Integer
s greater than or equal to a lower bound $a$. - Generates random
Integer
s less than or equal to an upper bound $a$. - Generates random
Integer
s whose absolute values have a specified mean bit length. - Generates random natural (non-negative)
Integer
s with a specified mean bit length. - Generates random negative
Integer
s whose absolute values have a specified mean bit length. - Generates random nonzero
Integer
s whose absolute values have a specified mean bit length. - Generates random positive
Integer
s with a specified mean bit length. - Generates random striped
Integer
s in the range $[a, b]$. - Generates random striped
Integer
s in the range $[a, b)$. - Generates striped random
Integer
s greater than or equal to a lower bound $a$. - Generates striped random
Integer
s less than or equal to an upper bound $a$. - Generates striped random
Integer
s whose absolute values have a specified mean bit length. - Generates striped random natural (non-negative)
Integer
s with a specified mean bit length. - Generates striped random negative
Integer
s whose absolute values have a specified mean bit length. - Generates striped random nonzero
Integer
s whose absolute values have a specified mean bit length. - Generates striped random positive
Integer
s with a specified mean bit length. - Uniformly generates random
Integer
s in the closed interval $[a, b]$. - Uniformly generates random
Integer
s in the half-open interval $[a, b)$.