Macaulay2 » Documentation
Packages » Points :: AllRandom
next | previous | forward | backward | up | index | toc

AllRandom -- Option to randomPointsMat.

Description

Default is false, in which case the first (up to) r+1 points returned are the standard simplex; if true, all the points are random.

i1 : S = ZZ/11[vars(0..2)]

o1 = S

o1 : PolynomialRing
i2 : setRandomSeed 0
 -- setting random seed to 0

o2 = 0
i3 : randomPointsMat(S,3, AllRandom=>true)

o3 = | -3 -4 3  |
     | 1  -3 3  |
     | 3  -1 -4 |

             3      3
o3 : Matrix S  <-- S

See also

Functions with optional argument named AllRandom:

  • randomPointsMat(...,AllRandom=>...) -- see randomPointsMat -- matrix of homogeneous coordinates of random points in projective space

For the programmer

The object AllRandom is a symbol.


The source of this document is in Points.m2:923:0.