UserFunction Random

Random(u,v:LIST,n,m:IN)|POLY|

The meaning of the parameters is as follows.

$u=\{x_1,x_2,\ldots\}$: List of variables.

$v=\{k_1,k_2,\ldots\}$: List of natural numbers.

$n,m$: Natural numbers.

Specification. A random polynomial in variables on list $u$ with maximal degrees
determined by corresponding integer on $v$ in REDUCE algebraic mode syntax is returned.
The coefficient size is bounded by the absolute value $10^n$, the maximal number of terms is $m$.

Example. The input is given in Reduce algebraic mode syntax.
The output for each minisession is returned in a separate window.

p:=Random({x,y},{3,3},2,5)|POLY|;

$p:=\frac{4}{9}-x^2$

 

Random}(u,v:LIST,n,m,N:IN)|POLID|;

Specification. Returns $N$ random polynomial as determined by the parameters $u$, $v$, $n$ and $m$ as above.

Example. The input is given in Reduce algebraic mode syntax. The output for each minisession
is returned in a separate window.

ps:=Random({x,y},{3,3},2,5,2)|$POLID$|;

$ps:={-\frac{47}{74}(x^2y-\frac{22}{47}y^2-\frac{50}{47}y-\frac{35}{47}) -\frac{20}{21}(x^2y^2-\frac{33}{40}xy^2+\frac{33}{20}x+\frac{77}{40}y)}$