Generates points that are randomly distributed
Use ee.FeatureCollection.randomPoints to generate random points within a specific region.
Example below with a link here.
// Define the region in which to compute random points. var region = ee.Geometry.Rectangle(-0.289, 39.165,-0.297 ,39.170); // Data // Create 1000 random points in the region. var randomPoints = ee.FeatureCollection.randomPoints(region,500); // Add to map Map.centerObject(randomPoints); Map.addLayer(randomPoints, {}, 'random points');