ee.Image.random

Generates a random number at each pixel location. When using the 'uniform' distribution, outputs are in the range of [0 to 1). Using the 'normal' distribution, the outputs have μ=0, 𝛔=1, but no explicit limits.

UsageReturns
ee.Image.random(seed, distribution)Image
ArgumentTypeDetails
seedLong, default: 0Seed for the random number generator.
distributionString, default: "uniform"The distribution type of random numbers to produce. One of 'uniform' or 'normal'.