![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <random.h>
Public Member Functions | |
| UniqueRandom (int n) | |
| void | init (int n) |
| int | next () |
Random number generator that returns a distinct number from the [0,n) interval each time.
|
inline |
|
inline |
Initializes the number generator.
| n | the size of the interval from which to generate random numbers. |
Definition at line 112 of file random.h.
References size_.
Referenced by UniqueRandom().
|
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
Definition at line 132 of file random.h.
References size_.
Referenced by flann::RandomCenterChooser< Distance >::operator()(), and flann::random_sample().