answered 2019-03-01 07:04:04 +0200
The documentation helps with that.
It can be accessed using
sage: random_matrix?
and in particular hints at
sage: random_matrix(algorithm='unimodular')
which will return a matrix of determinant one.