Definition at line 3592 of file arithmetic-gmp.hpp.
void plll::arithmetic::IntegerContext::UniformRNG::random |
( |
Integer & |
res, |
|
|
const Integer & |
bound |
|
) |
| |
|
inline |
Creates a random arbitrary precision integer in the range .
- Parameters
-
res | Where to store the result. |
bound | A bound on the maximal integer returned. |
Definition at line 3613 of file arithmetic-gmp.hpp.
Creates and returns a random arbitrary precision integer in the range .
- Parameters
-
bound | A bound on the maximal integer returned. |
ic | An integer context. |
- Returns
- The result.
Definition at line 3625 of file arithmetic-gmp.hpp.
void plll::arithmetic::IntegerContext::UniformRNG::randomBits |
( |
Integer & |
res, |
|
|
unsigned long |
bits |
|
) |
| |
|
inline |
Creates random bits.
- Parameters
-
res | Will be filled with a random integer in range . |
bits | The number of bits. |
Definition at line 3638 of file arithmetic-gmp.hpp.
Integer plll::arithmetic::IntegerContext::UniformRNG::randomBits |
( |
unsigned long |
bits, |
|
|
const IntegerContext & |
ic |
|
) |
| |
|
inline |
Creates random bits.
- Parameters
-
bits | The number of bits. |
ic | An integer context. |
- Returns
- A random integer in range .
Definition at line 3650 of file arithmetic-gmp.hpp.
void plll::arithmetic::IntegerContext::UniformRNG::randomLen |
( |
Integer & |
res, |
|
|
unsigned long |
bits |
|
) |
| |
|
inline |
Creates a random integer of a fixed bit length.
- Parameters
-
res | Will be filled with a random integer in range . |
bits | The number of bits. |
Definition at line 3663 of file arithmetic-gmp.hpp.
Integer plll::arithmetic::IntegerContext::UniformRNG::randomLen |
( |
unsigned long |
bits, |
|
|
const IntegerContext & |
ic |
|
) |
| |
|
inline |
Creates a random integer of a fixed bit length.
- Parameters
-
bits | The number of bits. |
ic | An integer context. |
- Returns
- A random integer in range .
Definition at line 3675 of file arithmetic-gmp.hpp.
The documentation for this class was generated from the following file: