| 1 | initial version |
Another approach, maybe more along the lines you were thinking:
sage: gen=VectorSpace(GF(29),9)
sage: basis = []
sage: while len(basis) < gen.dimension():
....: v = gen.random_element()
....: if not gen.linear_dependence(basis + [v]):
....: basis.append(v)
....:
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.