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 enough with random matrices and finite fields in Sage > to competently answer the question. > > ---------- Forwarded message ---------- > From: Alasdair McAndrew <[EMAIL PROTECTED]> > Date: Mon, Dec 1, 2008 at 12:30 PM > Subject: A sage question > To: [EMAIL PROTECTED] > > > How do I create a 4x4 matrix whose elements are randomly chosen from a > finite field? > > Thanks, > Alasdair > > -- > Blog: http://amca01.wordpress.com > > -- > Regards > Minh Van Nguyen > > Web: http://nguyenminh2.googlepages.com > Blog: http://mvngu.wordpress.com > > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---