[top][index]
search for:

random({...},Ring) -- a random ring element of a given degree

Synopsis:

  • Usage: r = random(n,R)
  • Function: random -- get a random element
  • Input:
  • n, an instance of class List: a list of integers
  • R, an instance of class Ring.
  • Output:
  • r, an instance of class RingElement: a random homogeneous element of degree n
  • The length of n should be the same as degreeLength R.

    See also:

  • setRandomSeed -- set starting point for random number generator

  • [top][index]
    search for: