#include <random.h>
Public Member Functions | |
void | init (int n) |
int | next () |
UniqueRandom (int n) | |
Private Attributes | |
int | counter_ |
int | size_ |
std::vector< int > | vals_ |
Random number generator that returns a distinct number from the [0,n) interval each time.
rtflann::UniqueRandom::UniqueRandom | ( | int | n | ) | [inline] |
void rtflann::UniqueRandom::init | ( | int | n | ) | [inline] |
int rtflann::UniqueRandom::next | ( | ) | [inline] |
int rtflann::UniqueRandom::counter_ [private] |
int rtflann::UniqueRandom::size_ [private] |
std::vector<int> rtflann::UniqueRandom::vals_ [private] |