Classes | Namespaces | Defines
RandomSelect.hpp File Reference

Header for RandomSelect. More...

#include <vector>
#include <limits>
#include <stdexcept>

Go to the source code of this file.

Classes

class  RandomLib::RandomSelect
 Random selection from a discrete set. More...

Namespaces

namespace  RandomLib

Defines

#define RANDOMSELECT_HPP   "$Id: RandomSelect.hpp 6723 2010-01-11 14:20:10Z ckarney $"
#define STATIC_ASSERT(cond, reason)   { enum{ STATIC_ASSERT_ENUM = 1/int(cond) }; }

Detailed Description

Header for RandomSelect.

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://randomlib.sourceforge.net/

Definition in file RandomSelect.hpp.


Define Documentation

#define RANDOMSELECT_HPP   "$Id: RandomSelect.hpp 6723 2010-01-11 14:20:10Z ckarney $"

Definition at line 12 of file RandomSelect.hpp.

#define STATIC_ASSERT (   cond,
  reason 
)    { enum{ STATIC_ASSERT_ENUM = 1/int(cond) }; }

A simple compile-time assert.

Definition at line 22 of file RandomSelect.hpp.

Referenced by RandomLib::RandomSelect::RandomSelect().