Top
Back: quotient
Forward: rank
FastBack: Functions and system variables
FastForward: Control structures
Up: Functions
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

5.1.116 random

Syntax:
random ( int_expression, int_expression )
Type:
int
Purpose:
returns a random integer between the integer given by the first int_expression and the one given by the second int_expression.
Syntax:
random ( int_expression, int_expression, int_expression )
Type:
intmat
Purpose:
returns a random intmat where the size is given by the second (number of rows) and third argument (number of columns). The absolute value of the entries of the matrix is smaller than or equal to the integer given as the first argument.
Note:
The random generator can be set to a startvalue with the function system, resp. by a command line option.
Example:
 
See Command line options; int; intmat; system.

Top Back: quotient Forward: rank FastBack: Functions and system variables FastForward: Control structures Up: Functions Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-6, Dec 2012, generated by texi2html.