Skip to main content

randint

Function randint 

Source
pub fn randint<'a>(
    low: i64,
    high: i64,
    shape: impl IntoShape,
    dtype: DType,
    key: impl Into<Option<&'a Array>>,
) -> Array
Expand description

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