module
random
Provides functions for random numbers.
You can import these APIs from the random
package. For example:
from random import seed
Functions
-
seed
: Seeds the random number generator using the current time. -
random_float64
: Returns a randomFloat64
number from the given range. -
random_si64
: Returns a randomInt64
number from the given range. -
random_ui64
: Returns a randomUInt64
number from the given range. -
randint
: Fills memory with uniform random in range [low, high]. -
rand
: Fills memory with random values from a uniform distribution. -
randn_float64
: Returns a random double sampled from a Normal(mean, variance) distribution. -
randn
: Fills memory with random values from a Normal(mean, variance) distribution.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
If you'd like to share more information, please report an issue on GitHub
😔 What went wrong?