Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Eurobot_2012_Secondary by
Random< T, MIN, MAX > Class Template Reference
A simple random class. More...
#include <tvmet/util/Random.h>
Detailed Description
template<class T, int MIN = 0, int MAX = 100>
 class tvmet::util::Random< T, MIN, MAX >
A simple random class.
> Random.h "tvmet/util/Random.h"
On each access this class returns a new random number using std::rand(). The range generated is templated by MIN and MAX.
- Example:
- #include <algorithm> tvmet::Random<int, 0, 100> random; std::generate(m1.begin(), m1.end(), random());
Specialized Random class.
Generated on Tue Jul 12 2022 21:02:14 by
 1.7.2
 1.7.2 
    