random -- get a random element
Description
This function can be used to get random elements of various sorts.
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