RandomMagma - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Magma

 RandomMagma
 generate a random magma of a given order

 Calling Sequence RandomMagma( n )

Parameters

 n - a positive integer

Description

 • The RandomMagma command generates a random magma of the indicated order n. The magma returned is represented by an n x n Array, in C order with 32-bit integer (integer[4]) datatype.

Examples

 > $\mathrm{with}\left(\mathrm{Magma}\right):$
 > $\mathrm{RandomMagma}\left(3\right)$
 $\left[\begin{array}{ccc}{2}& {3}& {1}\\ {3}& {2}& {1}\\ {1}& {1}& {1}\end{array}\right]$ (1)
 > $\mathrm{RandomMagma}\left(6\right)$
 $\left[\begin{array}{cccccc}{4}& {1}& {6}& {5}& {5}& {5}\\ {6}& {4}& {6}& {6}& {5}& {3}\\ {2}& {4}& {1}& {6}& {3}& {2}\\ {5}& {3}& {5}& {6}& {4}& {6}\\ {6}& {3}& {6}& {3}& {2}& {5}\\ {4}& {1}& {1}& {4}& {2}& {2}\end{array}\right]$ (2)

Compatibility

 • The Magma[RandomMagma] command was introduced in Maple 15.
 • For more information on Maple 15 changes, see Updates in Maple 15.