ee.FeatureCollection.randomColumn

Adds a column of deterministic pseudorandom numbers to a collection. The numbers are double-precision floating point numbers in the range 0.0 (inclusive) to 1.0 (exclusive).

UsageReturns
FeatureCollection.randomColumn(columnName, seed)FeatureCollection
ArgumentTypeDetails
this: collectionFeatureCollection

The input collection to which to add a random column.

columnNameString, default: "random"

The name of the column to add.

seedLong, default: 0

A seed used when generating the random numbers.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!