[next][previous][up][top][index]
search for:

random Ring -- random element of a ring

random R -- yields a random element of the ring R.

Currently implemented only for rings of the form ZZ/n.

Synopsis of use:

  • Operator: random
  • Class of argument 1: Ring
  • Class of typical returned value: RingElement
  • 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][previous][up][top][index]
    search for: