Earth Engine has introduced
noncommercial quota tiers to safeguard shared compute resources and ensure reliable performance for everyone. Noncommercial projects use the Community Tier by default, though you can change a project's tier at any time.
ee.Image.random
Stay organized with collections
Save and categorize content based on your preferences.
Generates a random number at each pixel location. When using the 'uniform' distribution, outputs are in the range of [0, 1). Using the 'normal' distribution, the outputs have μ=0, σ=1, but no explicit limits.
| Usage | Returns | ee.Image.random(seed, distribution) | Image |
| Argument | Type | Details | seed | Long, default: 0 | Seed for the random number generator. |
distribution | String, default: "uniform" | The distribution type of random numbers to produce. One of 'uniform' or 'normal'. |
[null,null,["Last updated 2024-09-19 UTC."],[],["Produces an image of random numbers at each pixel. The `seed` argument, a long integer, controls the random number generator. The `distribution` argument, defaulting to \"uniform,\" can be either \"uniform\" (outputting values within [0, 1)) or \"normal\" (outputting values with μ=0, σ=1). The function `ee.Image.random()` returns an Image.\n"]]