code: def randn(seed, shape, generator=None):
      """Generate a tensor with random numbers from a normal distribution using seed.
  
      Uses the seed parameter to set the global torch seed; to generate more with that seed, use randn_like/randn_without_seed.
      """
  
      manual_seed(seed)
  
      if shared.opts.randn_source == "NV":
          return torch.asarray(
              (generator or nv_rng).randn(shape), device=devices.device
          )
  
      if (
          shared.opts.randn_source == "CPU"
          or devices.device.type == "mps"
      ):
          return torch.randn(
              shape, device=devices.cpu, generator=generator
          ).to(devices.device)
  
      return torch.randn(
          shape, device=devices.device, generator=generator
      )
  
file_path: stable-diffusion-webui/modules/rng.py
imports: import torch
  from modules import devices, rng_philox, shared
label_desc: Use image node_id 1 for calling a global function with example usage: randn(seed, shape, generator) and returns: torch, torch, torch