#include <generic.h>
Public Types | |
typedef Field::Element | Element |
Public Methods | |
GenericRandIter (const Field &F, const integer &size=0, const integer &seed=0) | |
GenericRandIter (const GenericRandIter< Field > &R) | |
~GenericRandIter () | |
GenericRandIter< Field > & | operator= (const GenericRandIter< Field > &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.characteristic(c)). A sampling size of zero means to sample from the entire prime subfield. A seed of zero means to use some arbitrary seed for the 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.
|