ee.FeatureCollection.randomPoints

Generates points that are uniformly random on the sphere, and within the given region.

UsageReturns
ee.FeatureCollection.randomPoints(region, points, seed, maxError)FeatureCollection
ArgumentTypeDetails
regionGeometry

The region to generate points for.

pointsInteger, default: 1000

The number of points to generate.

seedLong, default: 0

A seed for the random number generator.

maxErrorErrorMargin, optional

The maximum amount of error tolerated when performing any necessary reprojection.