code: def rand(*size, **kwargs):
      r"""Random values in a given shape.
  
      Create an array of the given shape and populate it with random
      samples from a uniform distribution over [0, 1).
      Parameters
      ----------
      d0, d1, ..., dn : int, optional
          The dimensions of the returned array, should be all positive.
          If no argument is given a single Python float is returned.
      Returns
      -------
      out : ndarray
         Random values.
      Examples
      --------
      >>> np.random.rand(3,2)
      array([[ 0.14022471,  0.96360618],  #random
             [ 0.37601032,  0.25528411],  #random
             [ 0.49313049,  0.94909878]]) #random
      """
      output_shape = ()
      for s in size:
          output_shape += (s,)
      return uniform(0, 1, size=output_shape, **kwargs)
  
imports: import numpy
  from ...util import is_np_default_dtype
  from ...device import current_device
  from .None import _internal
  from .None import _api_internal
  from ...util import wrap_ctx_to_device_func
  from ..ndarray import get_dtype_name
label_desc: Use image node_id 19 for calling a global function with example usage: rand() and returns: uniform