Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to pick a matrix uniformly from a certain matrix space?

Hello, I hope everyone is fine. I have a small question. Suppose M denotes the set of all 2x2 matrices with integer entries. I know how to randomly pick an element from this space (by using the sage command .random_element().

My question is:

How can I uniformly pick a matrix from this space. I am not able to find any command for that? Kindly help.