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

◆ urandom

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

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

References get_default_rnd(), mpreal(), state, urandom, and x.

Referenced by urandom.