Developer Reference for Intel® Integrated Performance Primitives
Generates the pseudo-random samples with a uniform distribution.
IppStatus ippsRandUniform_8u(Ipp8u* pDst, int len, IppsRandUniState_8u* pRandUniState);
IppStatus ippsRandUniform_16s(Ipp16s* pDst, int len, IppsRandUniState_16s* pRandUniState);
IppStatus ippsRandUniform_32f(Ipp32f* pDst, int len, IppsRandUniState_32f* pRandUniState);
IppStatus ippsRandUniform_64f(Ipp64f* pDst, int len, IppsRandUniState_64f* pRandUniState);
ipps.h
Headers: ippcore.h, ippvm.h
Libraries: ippcore.lib, ippvm.lib
pDst |
Pointer to the array which stores the samples. |
len |
Number of samples to be computed. |
pRandUniState |
Pointer to the structure containing parameters for the generator of noise. |
This function generates len pseudo-random samples with a uniform distribution and stores them in the array pDst. Initial parameters of the generator are set in the generator state structure pRandUniState. Before calling ippsRandUniform, you must initialize the generator state by calling the function RandUniformInit.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when the pDst or pRandUniState pointer is NULL. |
ippStsContextMatchErr |
Indicates an error when the state identifier is incorrect. |