ee.ImageCollection.randomColumn
Adds a column of deterministic pseudorandom numbers to a collection. The outputs are double-precision floating point numbers. When using the 'uniform' distribution (default), outputs are in the range of [0, 1). Using the 'normal' distribution, outputs have μ=0, σ=1, but have no explicit limits.
Usage | Returns |
---|
ImageCollection.randomColumn(columnName, seed, distribution) | FeatureCollection |
Argument | Type | Details |
---|
this: collection | FeatureCollection | The input collection to which to add a random column. |
columnName | String, default: "random" | The name of the column to add. |
seed | Long, default: 0 | A seed used when generating the random numbers. |
distribution | String, default: "uniform" | The distribution type of random numbers to produce; one of 'uniform' or 'normal'. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-13 UTC.
[null,null,["Last updated 2024-07-13 UTC."],[[["Adds a new column of random numbers to an existing FeatureCollection."],["Users can specify the column name, seed for reproducibility, and distribution type (uniform or normal)."],["The 'uniform' distribution generates numbers between 0 (inclusive) and 1 (exclusive), while the 'normal' distribution generates numbers with a mean of 0 and standard deviation of 1."],["The output is a new FeatureCollection with the added random column."]]],[]]