RandUniform_Direct

Generates the pseudo-random samples with a uniform distribution in direct mode.

Syntax

IppStatus ippsRandUniform_Direct_16s(Ipp16s* pDst, int len, Ipp16s low, Ipp16s high, unsigned int* pSeed);

IppStatus ippsRandUniform_Direct_32f(Ipp32f* pDst, int len, Ipp32f low, Ipp32f high, unsigned int* pSeed);

IppStatus ippsRandUniform_Direct_64f(Ipp64f* pDst, int len, Ipp64f low, Ipp64f high, unsigned int* pSeed);

Parameters

pSeed

Pointer to the seed value used by the pseudo-random number generation algorithm.

low

Lower bound of the uniform distribution range.

high

Upper bound of the uniform distribution range.

pDst

Pointer to the array which stores the samples.

len

Number of samples to be computed.

Description

The function ippsRandUniform_Direct is declared in the ipps.h file. This function generates len pseudo-random samples with a uniform distribution and stores them in the array pDst. This function does not require to initialize the generator state structure in advance. All parameters of the pseudo-random number generator are set directly in the function.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pDst or pSeed pointer is NULL.

ippStsSizeErr

Indicates an error when len is less than or equal to 0.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.