Removed wrong reference to rng from choice members (what was I thinking?)
This commit is contained in:
parent
6e0c4a7264
commit
c73cc51ab9
1 changed files with 2 additions and 2 deletions
|
|
@ -252,10 +252,10 @@ public :
|
|||
* choice(vec), returns a uniformly chosen element from the vector
|
||||
*/
|
||||
template <class T>
|
||||
const T& choice(const std::vector<T>& vec) { return vec[rng.random(vec.size())]; }
|
||||
const T& choice(const std::vector<T>& vec) { return vec[random(vec.size())]; }
|
||||
|
||||
template <class T>
|
||||
T& choice(std::vector<T>& vec) { return vec[rng.random(vec.size())]; }
|
||||
T& choice(std::vector<T>& vec) { return vec[random(vec.size())]; }
|
||||
|
||||
///
|
||||
void printOn(std::ostream& _os) const
|
||||
|
|
|
|||
Reference in a new issue