 Magma - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Mathematics : Algebra : Magma : Magma/RandomMagma

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) datatype.

Examples

 > with( Magma ):
 > RandomMagma( 3 );
 $\left[\begin{array}{ccc}{2}& {3}& {1}\\ {3}& {2}& {1}\\ {1}& {1}& {1}\end{array}\right]$ (1)
 > RandomMagma( 6 );
 $\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.

 See Also