Skip to main content

randint

Function randint 

Source
pub fn randint(
    low: i64,
    high: i64,
    shape: &[usize],
    dtype: DType,
    key: Option<&Array>,
) -> Result<Array>
Expand description

Integers in [low, high) of shape and integer dtype, as MLX: uniform floats in [low, high) rounded down.