Struct faiss::RandomGenerator
-
struct RandomGenerator
random generator that can be used in multithreaded contexts
Public Functions
-
int rand_int()
random positive integer
-
int64_t rand_int64()
random int64_t
-
int rand_int(int max)
generate random integer between 0 and max-1
-
float rand_float()
between 0 and 1
-
double rand_double()
-
explicit RandomGenerator(int64_t seed = 1234)
Public Members
-
std::mt19937 mt
-
int rand_int()