Next()

Random::Next() method

Returns a nonnegative random number less then int32 max value.

virtual int32_t System::Random::Next()

Random::Next(int32_t) method

Returns a nonnegative random number less than the specified maximum.

virtual int32_t System::Random::Next(int32_t maxValue)

Arguments

ParameterTypeDescription
maxValueint32_tValues generated by the method will be less than this value

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)

Arguments

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