RandUniformInit

Initializes a noise generator with uniform distribution.

Syntax

IppStatus ippsRandUniformInit_16s(IppsRandUniState_16s* pRandUniState, Ipp16s low, Ipp16s high, unsigned int seed);

Parameters

pRandUniState

Pointer to the structure containing parameters for the generator of noise.

low

Lower bound of the uniform distribution range.

high

Upper bound of the uniform distribution range.

seed

Seed value used by the pseudo-random number generation algorithm.

Description

The function ippsRandUniformInit is declared in the ipps.h file. This function initializes the pseudo-random generator state pRandUniState in the external buffer. The size of this buffer must be computed previously by calling the function ippsRandUniformGetSize. The uniform distribution range is specified by the lower and upper bounds low and high, respectively.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pRandUniState pointer is NULL.

ippStsMemAllocErr

Indicates an error when there is not enough memory for the operation.

Submit feedback on this help topic

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