twenty_first::math::other

Function random_elements

Source
pub fn random_elements<T>(n: usize) -> Vec<T>
Expand description

Generate n random elements using rand::thread_rng().

For example implementations of the Distribution trait for Standard, see BFieldElement or XFieldElement.