This is the Tiny Vector Matrix Expression Templates library found at http://tvmet.sourceforge.net. It is the fastest and most compact matrix lib out there (for < 10x10 matricies). I have done some minor tweaks to make it compile for mbed. For examples and hints on how to use, see: http://tvmet.sourceforge.net/usage.html

Dependents:   Eurobot_2012_Secondary

Embed: (wiki syntax)

« Back to documentation index

Random< T, MIN, MAX > Class Template Reference

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.

Definition at line 52 of file Random.h.