Macaulay2 Engine
Loading...
Searching...
No Matches

◆ urandom()

const mpreal mpfr::urandom ( gmp_randstate_t & state,
mp_rnd_t rnd_mode = mpreal::get_default_rnd() )
inline

Definition at line 2837 of file mpreal.h.

2838{
2839 mpreal x;
2840 mpfr_urandom(x.mpfr_ptr(), state, rnd_mode);
2841 return x;
2842}
volatile int x
static gmp_randstate_t state
Definition random.cpp:18

Referenced by mpfr::mpreal::random.