std::uniform_int_distribution min() method in C++ with examples Last Updated : 17 Jun, 2019 Comments Improve Suggest changes Like Article Like Report The min() method of uniform_int_distribution class in C++ is used to get the minimum possible value that can be generated by this uniform_int_distribution. Syntax: result_type min() const; Parameters: This method do not accepts any parameters. Return Value: This method return the minimum possibly generated value in this uniform_int_distribution. Example: CPP // C++ code to demonstrate // the working of min() function #include <iostream> // for uniform_int_distribution function #include <random> using namespace std; int main() { int a = 10, b = 100; // Initializing of uniform_int_distribution class uniform_int_distribution<int> distribution(a, b); // Using min() cout << "Min value that can be generated " << "by this uniform_int_distribution: " << distribution.min() << endl; return 0; } Output: Min value that can be generated by this uniform_int_distribution: 10 Reference: https://en.cppreference.com/w/cpp/numeric/random/uniform_int_distribution/min Comment More infoAdvertise with us Next Article std::uniform_int_distribution min() method in C++ with examples S srinam Follow Improve Article Tags : Misc C++ CPP-Functions cpp-random Practice Tags : CPPMisc Similar Reads std::uniform_int_distribution a() method in C++ with examples The a() method of uniform_int_distribution class in C++ is used to get the lower bound of this uniform_int_distribution. If there is no lower bound then this method returns 0. Syntax: result_type a() const; Parameters: This method do not accepts any parameters. Return Value: This method return the ' 1 min read std::uniform_int_distribution b() method in C++ with examples The b() method of uniform_int_distribution class in C++ is used to get the upper bound of this uniform_int_distribution. If there is no upper bound then this method returns std::numeric_limits::max(). Syntax: result_type b() const; Parameters: This method do not accepts any parameters. Return Value: 1 min read std::uniform_int_distribution max() method in C++ with examples The max() method of uniform_int_distribution class in C++ is used to get the maximum possible value that can be generated by this uniform_int_distribution. Syntax: result_type max() const; Parameters: This method do not accepts any parameters. Return Value: This method return the maximum possibly ge 1 min read std::uniform_int_distribution reset() method in C++ with examples The reset() method of uniform_int_distribution class in C++ is used to reset this uniform_int_distribution. Syntax: void reset(); Parameters: This method do not accepts any parameters. Return Value: This method do not return anything. Example: CPP // C++ code to demonstrate // the working of reset() 1 min read std::uniform_real_distribution min() method in C++ with Examples The min() method of uniform_real_distribution class in C++ is used to get the minimum possible value that can be generated by this uniform_real_distribution. Syntax: result_type min() const; Parameters: This method do not accepts any parameters. Return Value: This method return the minimum possibly 1 min read Like