SECRandom::SetBounds

BOOLSECRandom::SetBounds(unsigned intnMin, unsigned intnMax)

Sets the upper and lower bounds of the range.

Defined in: SECRAND.CPP

Return Value

Nonzero if boundary values specified were valid, otherwise 0.

Parameters

nMin

The lower bound of the random number generator range.

nMax

The upper bound of the random number generator range.

Comments

The range can fall in the range of SECRANDOM_MIN and SECRANDOM_MAX. The lower bound must be less than the upper bound. Specifiying both values to be 0 will set the lower bound to SECRANDOM_MIN and the upper bound to SECRANDOM_MAX.

See Also

SECRandom  SetLBound  SetUBound