ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 07 May 2018 00:42:16 -0500Generating random matricies with random_matrixhttp://ask.sagemath.org/question/42275/generating-random-matricies-with-random_matrix/I'm having trouble finding the documentation for random_matrix what distributions are available besides the uniform distribution and what is the range of the uniform distribution?
Sorry if this is obvious but I'm having trouble finding this info in the doc.sagemath.org Sun, 06 May 2018 20:31:11 -0500http://ask.sagemath.org/question/42275/generating-random-matricies-with-random_matrix/Answer by slelievre for <p>I'm having trouble finding the documentation for random_matrix what distributions are available besides the uniform distribution and what is the range of the uniform distribution? <br>Sorry if this is obvious but I'm having trouble finding this info in the <a href="http://doc.sagemath.org">doc.sagemath.org</a> </p>
http://ask.sagemath.org/question/42275/generating-random-matricies-with-random_matrix/?answer=42278#post-id-42278The distributions will vary according to the base ring over which
you are considering matrices.
To access the documentation, open a Sage session and run
sage: random_matrix?
then hit the ENTER or RETURN key. This will display the documentation (in text mode).
Alternatively, run
sage: browse_sage_doc(random_matrix)
to display the documentation rendered in HTML.
The corresponding page in the reference manual is accessible from this page:
[http://doc.sagemath.org/html/en/reference/matrices/sage/matrix/special.html](http://doc.sagemath.org/html/en/reference/matrices/sage/matrix/special.html).
You may also want to access the documentation for the `random_element`
method of the base ring.
For example, type one of
sage: R = ZZ
sage: R = QQ
sage: R = GF(5)
sage: R = Zmod(12)
followed by one of
sage: R.random_element?
sage: browse_sage_doc(R.random_element)Mon, 07 May 2018 00:42:16 -0500http://ask.sagemath.org/question/42275/generating-random-matricies-with-random_matrix/?answer=42278#post-id-42278