Random Prime Generator.
More...
#include <random-integer.h>
template<bool _Unsigned = true>
class LinBox::RandomIntegerIterator< _Unsigned >
Random Prime Generator.
Generates integers of specified length.
- Template Parameters
-
_Unsigned | if true , then only non negative integers are generated, if false , their sign is random. |
Constructor.
- Parameters
-
bits | size of integers (in bits) |
seed | if 0 a seed will be generated, otherwise, the provided seed will be use. |
const Integer_Type& operator* |
( |
| ) |
const |
|
inline |
get the random integer.
returns the actual integer.
const Integer_Type& randomInteger |
( |
| ) |
const |
|
inline |
get the random integer.
returns the actual integer.
- Warning
- a new integer is not generated.
static void setSeed |
( |
unsigned long |
ul | ) |
|
|
inlinestatic |
Sets the seed.
Set the random seed to be ul
.
- Parameters
-
The documentation for this class was generated from the following file: