![[next]](next.gif)
![[previous]](previous.gif)
![[up]](up.gif)
![[top]](top.gif)
random R -- yields a random element of the ring R.
Currently implemented only for rings of the form ZZ/n.
Synopsis of use:
Code:
-- ../m2/enginering.m2:644-647
random Ring := RingElement => (R) -> (
if R.?random then R.random()
else error "no method found for item of class Ring"
)
![[next]](next.gif)
![[previous]](previous.gif)
![[up]](up.gif)
![[top]](top.gif)