next
|
previous
|
forward
|
backward
| up |
top
|
index
|
toc
|
Macaulay2 website
Macaulay2Doc
::
random
random -- get a random element
Synopsis
Optional inputs
:
Density
=>
...
,
default value 1
, make a random module map
Height
=>
...
,
default value 10
, random element of a type
MaximalRank
=>
...
,
default value false
, make a random module map
UpperTriangular
=>
...
,
default value false
, make a random module map
Description
This function can be used to get random elements of various sorts.
See also
setRandomSeed
-- set starting point for random number generator
Ways to use
random
:
random(List)
-- shuffle a list randomly
random(Module,Module)
-- make a random module map
random(RR)
-- random real number
random(RR,RR)
-- random real number
"random(GaloisField)"
-- see
random(Type)
-- random element of a type
"random(List,Ring)"
-- see
random(Type)
-- random element of a type
"random(QuotientRing)"
-- see
random(Type)
-- random element of a type
"random(RingFamily)"
-- see
random(Type)
-- random element of a type
random(Type)
-- random element of a type
"random(ZZ,Ring)"
-- see
random(Type)
-- random element of a type
random(ZZ)
-- random integer
random(ZZ,ZZ)
-- random integer in a range
For the programmer
The object
random
is
a
method function with options
.