Ask Your Question

Revision history [back]

Presumably you're not just looking for something like identity_matrix(GF(16), 3). Is

sage: F = ... your favorite finite field ..., for example F = GF(2)
sage: G = GL(4, F)
sage: G.random_element()

what you're looking for?