I want to generate many random special affine transformations, that is, affine transformations that preserve volume (determinant equal to 1).
I need quite a few of them. Is there a better way than generating random matrices and checking if they have the properties of an affine transformation?
An easy way to generate matrices with determinant equal to $1$ is to
This process creates matrices with real entries. If one needs integer matrices, or a particular distribution of matrices, that's another question...