mlx_random_uniform function

int mlx_random_uniform(
  1. Pointer<mlx_array> res,
  2. mlx_array low,
  3. mlx_array high,
  4. Pointer<Int> shape,
  5. int shape_num,
  6. mlx_dtype_ dtype,
  7. mlx_array key,
  8. mlx_stream s,
)

Implementation

int mlx_random_uniform(
  ffi.Pointer<mlx_array> res,
  mlx_array low,
  mlx_array high,
  ffi.Pointer<ffi.Int> shape,
  int shape_num,
  mlx_dtype_ dtype,
  mlx_array key,
  mlx_stream s,
) => _mlx_random_uniform(res, low, high, shape, shape_num, dtype.value, key, s);