System::Random::Next method

Random::Next() method

Returns a nonnegative random number less then int32 max value.

virtual int32_t System::Random::Next()

See Also

Random::Next(int32_t) method

Returns a nonnegative random number less than the specified maximum.

virtual int32_t System::Random::Next(int32_t maxValue)
ParameterTypeDescription
maxValueint32_tValues generated by the method will be less than this value

See Also

Random::Next(int32_t, int32_t) method

Returns a random number within the specified range.

virtual int32_t System::Random::Next(int32_t minValue, int32_t maxValue)
ParameterTypeDescription
minValueint32_tValues generated by the method will be greater than this value
maxValueint32_tValues generated by the method will be less than this value

See Also