/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocal/checkouts/docs-6.1.2/rocAL_pybind/amd/rocal/random.py File Reference#
random.py File Reference
File containing randomization functions used for creating RNG generators. More...
Functions | |
def | rocAL_pybind.amd.rocal.random.coin_flip (*inputs, probability=0.5) |
coin flip with a given probability of success. More... | |
def | rocAL_pybind.amd.rocal.random.uniform (*inputs, range=[-1, 1]) |
Generates random values uniformly distributed within a specified range. More... | |
Detailed Description
File containing randomization functions used for creating RNG generators.
Function Documentation
◆ coin_flip()
def rocAL_pybind.amd.rocal.random.coin_flip | ( | * | inputs, |
probability = 0.5 |
|||
) |
coin flip with a given probability of success.
@param inputs list of input arguments. @param probability Probability of getting a "success" outcome. @return An array of coin flip outcomes.
◆ uniform()
def rocAL_pybind.amd.rocal.random.uniform | ( | * | inputs, |
range = [-1, 1] |
|||
) |
Generates random values uniformly distributed within a specified range.
@param inputs list of input arguments. @param range Range for the uniform distribution. @return random values uniformly distributed within the specified range.