Hello, all! After running
random_matrix(GF(2), 2, 1) I always get the same matrix, [[1][1]]. Also, the following code freq = {} for _ in range(1000): M = random_matrix(GF(2), 2, 2) M.set_immutable() if M not in freq: freq[M] = 1 else: freq[M] += 1 show(freq) gives a very different result from the uniform distribution that I was expecting. For example, the all-ones 2x2 matrix is the more probable, and matrices with a full-zero-row does not appear, although matrices with a full-zero-column does. In general, I noticed that the more "1's" the matrix has, the more probable it is. Am I missing something? Regards, Roberto. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org