MCPcopy Create free account
hub / github.com/Singular/Singular / getRandom

Method getRandom

Singular/svd_si.h:1607–1612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1605
1606 template<unsigned int Precision>
1607 const ampf<Precision> ampf<Precision>::getRandom()
1608 {
1609 ampf<Precision> r;
1610 while(mpfr_urandomb(r.getWritePtr(), *amp::mpfr_storage::getRandState()));
1611 return r;
1612 }
1613
1614 //
1615 // comparison operators

Callers

nothing calls this directly

Calls 1

getWritePtrMethod · 0.45

Tested by

no test coverage detected