[back] [prev] [next] [index] [root]

 


RandomMatrix

Using RandomMatrix a square matrix with "random" entries is returned.

Syntax:

m := RandomMatrix(R, n, l);

matrix
  m  
in R^{ n \times n}
ring
  R  
may be an order, an ideal, Z, a module or an function field order.
integer
  n  
list
  l  
of possible (coeffiecents of the) entries.

Description:

no detailed description available yet


Example:

kash> m := RandomMatrix(Z, 5);
[ 19  11   5  -6 -18]
[ -6  17  18   5 -16]
[ -1 -16  -4  -3  13]
[ 17  11  -9  11  18]
[ -5   3  -7  12  -3]
kash> m := RandomMatrix(Z, 5);
> [  7  17  -6  -9   5]
[ 11   3 -10 -18  10]
[ 17  16 -14   3 -15]
[ -2   0   3  -9  10]
[  1 -11   6   9  -4]


<- back[back] [prev] [next] [index] [root]