truncate_to_domain

Function truncate_to_domain 

Source
pub fn truncate_to_domain<T: PartialOrd>(value: T, min: T, max: T) -> T
Expand description

check if the value that was randomly generated is contained within its domain