SECRandom::GetRandomWeighted

unsigned intSECRandom::GetRandomWeighted(void)

Returns a weighted random value based on the current weight array.

Defined in: SECRAND.CPP

Return Value

Returns a random number skewed by the currently loaded weighted vector.

Comments

An ordinary random number is first generated and then fitted to the weighted vector to skew it.

See Also

SECRandom  AddWeightAddWeights  InitWeights