code: def uniform(low=0.0, high=1.0, size=None, dtype=float):
      """Returns an array of uniformly-distributed samples over an interval.
  
      Samples are drawn from a uniform distribution over the half-open interval
      ``[low, high)``. The samples may contain the ``high`` limit due to
      floating-point rounding.
  
      Args:
          low (float): Lower end of the interval.
          high (float): Upper end of the interval.
          size (int or tuple of ints): The shape of the array. If ``None``, a
              zero-dimensional array is generated.
          dtype: Data type specifier.
  
      Returns:
          cupy.ndarray: Samples drawn from the uniform distribution.
  
      .. seealso:: :func:`numpy.random.uniform`
  
      """
      rs = _generator.get_random_state()
      return rs.uniform(low, high, size=size, dtype=dtype)
  
imports: from cupy.random import _generator
  from cupy import _util
label_desc: Use image node_id 30 for calling a global function with example usage: uniform(low, high, size, dtype) and returns: rs