next
|
previous
|
forward
|
backward
| up |
top
|
index
|
toc
|
Macaulay2 web site
random -- get a random element
Synopsis
Optional inputs
:
Density => ...
, -- make a random module map
Height => ...
, -- random element of a type
MaximalRank => ...
, -- make a random module map
UpperTriangular => ...
, -- 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