Random Integer Iterator.
More...
#include <random-integer.h>
template<bool _Unsigned = true>
class LinBox::RandomIntegerIter< _Unsigned >
Random Integer Iterator.
Generates integers of size smaller than a prescribed one. This class is closer to the LinBox::RandIterArchetype.
- Todo:
- one could create the same one on a LinBox::PID_double ?
- Template Parameters
-
| _Unsigned | if true, then only non negative integers are generated, if false, their sign is random. |
Constructor.
- Parameters
-
| bits | max size of integers (in bits) |
| seed | if 0 a seed will be generated, otherwise, the provided seed will be use. |
copy constructor.
- Parameters
-
| R | random iterator to be copied. |
copy.
- Parameters
-
| R | random iterator to be copied. |
get the random integer.
- Parameters
-
| [out] | a | the new integer number |
The documentation for this class was generated from the following file: