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

◆ random()

template<class RingType>
virtual ring_elem M2::ConcreteRing< RingType >::random ( ) const
inlinevirtual

Reimplemented from Ring.

Definition at line 427 of file aring-glue.hpp.

428 {
429 if (displayArithmeticCalls) fprintf(stderr, "calling random\n");
431 Element a(*R);
432 R->random(a);
433 R->to_ring_elem(result, a);
434 return result;
435 }
std::unique_ptr< RingType > R
RingType::Element Element

Referenced by getElement< RingCCC >(), and getElement< RingRRR >().