megengine.random¶
|
Sets the seed for generating random numbers globally. |
|
Randomly permute a sequence, or return a permuted range. |
|
Modify a sequence in-place by shuffling its contents. |
分布(Distribution)¶
Random variable with Gaussian distribution \(N(\mu, \sigma)\). |
|
Random variable with uniform distribution \(U(low, high)\). |
|
Random variable with Beta distribution \(\operatorname{Beta}(\alpha, \beta)\). |
|
Random variable with Gamma distribution \(\Gamma(k, \theta)\). |
|
Random variable with poisson distribution \(\operatorname{Poisson}(\lambda)\). |