IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Mojo module

rand_normal

Generates tensors filled with values drawn from a normal (Gaussian) distribution for CPU and GPU.

Functions

  • random_normal: Call output_fn with values from a normal distribution, matching PyTorch CUDA's torch.randn element-to-counter mapping.