Expand description
Basic random number generation operations
This module provides fundamental random number generation functions including uniform distributions, normal distributions, and basic random sampling operations. All operations follow PyTorch’s random generation API for compatibility.
Functions§
- normal_
- Generate tensor with values drawn from normal distribution
- rand
- Generate tensor with values drawn from uniform distribution [0, 1)
- randint
- Generate random integers in the range [0, high)
- randint_
- Generate random integers in the range [low, high)
- randn
- Generate tensor with values drawn from standard normal distribution
- randperm
- Generate random permutation of integers from 0 to n-1
- uniform_
- Fill tensor with values drawn from uniform distribution