lance_datagen::generator::array

Function rand

Source
pub fn rand<DataType>() -> Box<dyn ArrayGenerator>
where DataType::Native: Copy + 'static, PrimitiveArray<DataType>: From<Vec<DataType::Native>> + 'static, DataType: ArrowPrimitiveType, Standard: Distribution<DataType::Native>,
Expand description

Create a generator of primitive values that are randomly sampled from the entire range available for the value