random Ring -- random element of a ring
Synopsis:
Note: not implemented yet for RR, CC, and polynomial rings.
See also:
setRandomSeed -- set starting point for random number generator
Code:
-- ../../../Macaulay2/m2/enginering.m2:690-693
random Ring := RingElement => (R) -> (
if R.?random then R.random()
else error "no method found for item of class Ring"
)