#include <chrono>
#include <random>
#include <algorithm>
#include <iterator>
#include <stdlib.h>
#include "common/Thread.h"
Go to the source code of this file.
|
std::default_random_engine & | ai::randomEngine () |
|
void | ai::randomSeed (unsigned int seed) |
|
float | ai::randomf (float max=1.0f) |
|
int | ai::random (int min, int max) |
|
float | ai::randomBinomial (float max=1.0f) |
|
template<typename I > |
I | ai::randomElement (I begin, I end) |
|
template<typename T > |
void | ai::randomElements (std::vector< T > &vec, int n) |
| Helper function to cut the input vector down to n random elements.
|
|
template<typename I > |
void | ai::shuffle (I begin, I end) |
|