Macaulay2 Engine
Loading...
Searching...
No Matches
◆
random()
ring_elem
GF::random
(
)
const
virtual
Reimplemented from
Ring
.
Definition at line
181
of file
GF.cpp
.
182
{
183
int
exp
=
rawRandomInt
((int32_t)
Q_
);
184
return
ring_elem(exp);
185
}
GF::Q_
int Q_
Definition
GF.hpp:69
mpfr::exp
const mpreal exp(const mpreal &x, mp_rnd_t r=mpreal::get_default_rnd())
Definition
mpreal.h:2298
rawRandomInt
int32_t rawRandomInt(int32_t max)
Definition
random.cpp:44
References
Q_
, and
rawRandomInt()
.
GF
Generated on
for Macaulay2 Engine by
1.15.0