hiprandsetpseudorandomgeneratorseed Interface Reference#
hipfort_hiprand::hiprandsetpseudorandomgeneratorseed Interface Reference
Sets the seed of a pseudo-random number generator. More...
Public Member Functions | |
integer(kind(hiprand_status_success)) function | hiprandsetpseudorandomgeneratorseed_ (generator, seed) |
Detailed Description
Sets the seed of a pseudo-random number generator.
Sets the seed of the pseudo-random number generator.
- This operation resets the generator's internal state.
- This operation does not change the generator's offset.
- Parameters
-
generator - Pseudo-random number generator seed - New seed value
- Returns
- HIPRAND_STATUS_NOT_INITIALIZED if the generator was not initialized
- HIPRAND_STATUS_TYPE_ERROR if the generator is a quasi random number generator
- HIPRAND_STATUS_SUCCESS if seed was set successfully
- HIPRAND_STATUS_NOT_INITIALIZED if the generator was not initialized
Member Function/Subroutine Documentation
◆ hiprandsetpseudorandomgeneratorseed_()
integer(kind(hiprand_status_success)) function hipfort_hiprand::hiprandsetpseudorandomgeneratorseed::hiprandsetpseudorandomgeneratorseed_ | ( | type(c_ptr), value | generator, |
integer(c_long_long), value | seed | ||
) |
The documentation for this interface was generated from the following file: