Generates points that are randomly distributed

Use ee.FeatureCollection.randomPoints to generate random points within a specific region.

Example below with a link here.

<span data-mce-type="bookmark" id="mce_SELREST_start" data-mce-style="overflow:hidden;line-height:0" style="overflow:hidden;line-height:0;">&#65279;</span>
// 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.addLayer(randomPoints, {}, 'random points');