#include <opencv2/flann/random.h>
Random number generator that returns a distinct number from the [0,n) interval each time.
§ UniqueRandom()
cvflann::UniqueRandom::UniqueRandom |
( |
int |
n | ) |
|
|
inline |
Constructor.
- Parameters
-
n | Size of the interval from which to generate |
- Returns
§ init()
void cvflann::UniqueRandom::init |
( |
int |
n | ) |
|
|
inline |
Initializes the number generator.
- Parameters
-
n | the size of the interval from which to generate random numbers. |
§ next()
int cvflann::UniqueRandom::next |
( |
| ) |
|
|
inline |
Return a distinct random integer in greater or equal to 0 and less than 'n' on each call. It should be called maximum 'n' times. Returns: a random integer
The documentation for this class was generated from the following file: