# 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.

From a countable set, what would it mean to pick uniformly at random?