#include <vector>
#include <limits>
#include <stdexcept>
Go to the source code of this file.
Namespaces | |
| namespace | RandomLib |
Classes | |
| class | RandomLib::RandomSelect< NumericType > |
| Random selection from a discrete set. More... | |
Defines | |
| #define | RANDOMSELECT_HPP "$Id: RandomSelect.hpp 6429 2008-04-28 00:14:02Z ckarney $" |
| #define | STATIC_ASSERT(cond, reason) { enum{ STATIC_ASSERT_ENUM = 1/int(cond) }; } |
An implementation of the Walker algorithm for selecting from a finite set.
Written by Charles Karney <charles@karney.com> and licensed under the LGPL. For more information, see http://charles.karney.info/random/
Definition in file RandomSelect.hpp.
| #define RANDOMSELECT_HPP "$Id: RandomSelect.hpp 6429 2008-04-28 00:14:02Z ckarney $" |
Definition at line 13 of file RandomSelect.hpp.
| #define STATIC_ASSERT | ( | cond, | |||
| reason | ) | { enum{ STATIC_ASSERT_ENUM = 1/int(cond) }; } |
A simple compile-time assert.
Definition at line 23 of file RandomSelect.hpp.
1.5.6