code: def rayleigh(scale, size=None):
      u = ivy.random_uniform(
          low=0.0, high=1.0, shape=size, dtype="float64"
      )
      log_u = ivy.log(u)
      x = ivy.multiply(scale, ivy.sqrt(ivy.multiply(-2, log_u)))
      return x
  
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back, from_zero_dim_arrays_to_scalar
  from ivy import with_supported_dtypes
label_desc: Use image node_id 23 for calling a global function with example usage: rayleigh(scale, size) and returns: x