[sage-support] Re: Fwd: A sage question

2008-11-30 Thread Craig Citro
You can just use the random_matrix command: sage: random_matrix(GF(5), 4, 4) [3 0 4 3] [4 1 1 4] [2 3 3 4] [4 4 1 0] -cc On Sun, Nov 30, 2008 at 5:34 PM, Minh Nguyen <[EMAIL PROTECTED]> wrote: > > Hi folks, > > Perhaps someone can give a better answer to the question below? I > haven't explored

[sage-support] Re: Fwd: A sage question

2008-11-30 Thread Justin C. Walker
On Nov 30, 2008, at 17:34 , Minh Nguyen wrote: > > Hi folks, > > Perhaps someone can give a better answer to the question below? I > haven't explored enough with random matrices and finite fields in Sage > to competently answer the question. MS = MatrixSpace(GF(5), 4, 4) M = MS.random_element()