공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ee.Image.random
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
각 픽셀 위치에서 난수를 생성합니다. '균등' 분포를 사용하는 경우 출력은 [0, 1) 범위에 있습니다. '정규' 분포를 사용하면 출력의 μ=0, σ=1이지만 명시적 한도는 없습니다.
사용 | 반환 값 |
---|
ee.Image.random(seed, distribution) | 이미지 |
인수 | 유형 | 세부정보 |
---|
seed | long, 기본값: 0 | 난수 생성기의 시드입니다. |
distribution | 문자열, 기본값: 'uniform' | 생성할 난수의 분포 유형입니다. 'uniform' 또는 'normal' 중 하나입니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eGenerates random numbers at each pixel location of an image.\u003c/p\u003e\n"],["\u003cp\u003eOffers two distribution options: 'uniform' (range [0, 1)) and 'normal' (μ=0, σ=1).\u003c/p\u003e\n"],["\u003cp\u003eAllows specification of a seed for reproducible results, defaulting to 0 if not provided.\u003c/p\u003e\n"],["\u003cp\u003eReturns an Earth Engine Image object containing the generated random numbers.\u003c/p\u003e\n"]]],["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"],null,["# ee.Image.random\n\nGenerates 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.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------------------|---------|\n| `ee.Image.random(`*seed* `, `*distribution*`)` | Image |\n\n| Argument | Type | Details |\n|----------------|----------------------------|-----------------------------------------------------------------------------------|\n| `seed` | Long, default: 0 | Seed for the random number generator. |\n| `distribution` | String, default: \"uniform\" | The distribution type of random numbers to produce. One of 'uniform' or 'normal'. |"]]