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

# randomPoints -- ideal of a random set of points

- Usage:
    `i = randomPoints(r,n)`
- Inputs:
  - r, an integer, ambient dimension
  - n, an integer, number of points
- Outputs:
  - i, an ideal, ideal of the random points

## Description

The script defines a ring R with r+1 variables, and calls points(R,randomPointsMat(R, n))

    i1 : betti res randomPoints(11,5)

                0  1   2   3   4    5    6    7   8   9 10 11
    o1 = total: 1 17 111 400 914 1414 1526 1156 605 209 43  4
             0: 1  7  21  35  35   21    7    1   .   .  .  .
             1: . 10  90 365 879 1393 1519 1155 605 209 43  4

    o1 : BettiTally

## See also

- randomPointsMat -- matrix of homogeneous coordinates of random points in projective space
- points -- make the ideal of a set of points

## For the programmer

The object randomPoints is a function closure.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Points.m2:757:0.