Sample random integers on mlx arrays
mlx_rand_randint.RdGenerates random integers uniformly distributed over the interval [low, high).
Usage
mlx_rand_randint(
  dim,
  low,
  high,
  dtype = c("int32", "int64", "uint32", "uint64"),
  device = mlx_default_device()
)Arguments
- dim
- Integer vector specifying the array shape/dimensions. 
- low
- Lower bound (inclusive). 
- high
- Upper bound (exclusive). 
- dtype
- Desired integer dtype ("int32", "int64", "uint32", "uint64"). 
- device
- Execution target: provide - "gpu",- "cpu", or an- mlx_streamcreated via- mlx_new_stream(). Defaults to the current- mlx_default_device().