#include <modular-balance.h>
Public Member Functions | |
ModularBalanceRandIter (const ModularBalance< Element > &F, const integer &size=0, const integer &seed=0) | |
ModularBalanceRandIter (const ModularBalanceRandIter< Element > &R) | |
~ModularBalanceRandIter () | |
ModularBalanceRandIter< Element > & | operator= (const ModularBalanceRandIter< Element > &R) |
Element & | random (Element &a) const |
ElementAbstract & | random (ElementAbstract &a) const |
|
Constructor from field, sampling size, and seed. The random field element iterator works in the field F, is seeded by seed, and it returns any one element with probability no more than 1/min (size, F.cardinality (c)). A sampling size of zero means to sample from the entire field. A seed of zero means to use some arbitrary seed for the generator. Purely virtual.
|
|
Copy constructor. Constructs ModularBalanceRandIter object by copying the random field element generator. This is required to allow generator objects to be passed by value into functions.
|
|
Destructor. This destructs the random field element generator object. |
|
Assignment operator. Assigns ModularBalanceRandIter object R to generator.
|
|
Random field element creator. This returns a random field element from the information supplied at the creation of the generator. Required by abstract base class.
|
|
Random field element creator. This returns a random field element from the information supplied at the creation of the generator. Required by abstract base class.
|