[top][index]
search for:

random(Module,Module) -- make a random module map

Synopsis:

  • Function: random -- get a random element
  • Input:
  • an instance of class Module.
  • an instance of class Module.
  • Output:
  • an instance of class Matrix.
  • random(F,G) -- yields a random graded, degree 0, map from the free module G to the free module F.

    i1 : R = ZZ/101[x,y];
    i2 : random(R^{1,2,3},R^{1,2,3})

    o2 = {-1} | -22             0       0  |
         {-2} | 38x-37y         -2      0  |
         {-3} | -39x2+41xy-16y2 43x+49y 35 |

                 3       3
    o2 : Matrix R  <--- R

    See also:

  • setRandomSeed -- set starting point for random number generator

  • [top][index]
    search for: