Duyuru:
15 Nisan 2025'ten önce Earth Engine'i kullanmak için kaydedilen tüm ticari olmayan projelerin Earth Engine erişimini sürdürmek için
ticari olmayan uygunluğu doğrulaması gerekir.
ee.List.shuffle
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Belirtilen listeyi rastgele permütasyonla değiştirin. Permütasyon sırasının, seed değeri "false" olmadığı sürece belirli bir seed için her zaman aynı olacağını unutmayın.
Kullanım | İadeler |
---|
List.shuffle(seed) | Liste |
Bağımsız Değişken | Tür | Ayrıntılar |
---|
bu: list | Liste | |
seed | Nesne, varsayılan: null | Rastgeleleştirme için kaynak olarak kullanılacak uzun bir tam sayı. "false" boole değeri iletilirse tamamen rastgele ve yeniden üretilemeyen bir sıra oluşturulur. |
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-26 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-26 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eList.shuffle()\u003c/code\u003e method randomly reorders the elements within a list.\u003c/p\u003e\n"],["\u003cp\u003eProviding a specific \u003ccode\u003eseed\u003c/code\u003e value ensures consistent shuffling results, making the process reproducible.\u003c/p\u003e\n"],["\u003cp\u003eUsing \u003ccode\u003efalse\u003c/code\u003e as the \u003ccode\u003eseed\u003c/code\u003e guarantees a truly random and unrepeatable shuffle.\u003c/p\u003e\n"],["\u003cp\u003eThe method returns the modified list with its elements shuffled according to the specified conditions.\u003c/p\u003e\n"]]],[],null,["# ee.List.shuffle\n\nRandomly permute the specified list. Note that the permutation order will always be the same for any given seed, unless the value for seed is 'false'.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------|---------|\n| List.shuffle`(`*seed*`)` | List |\n\n| Argument | Type | Details |\n|--------------|-----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `list` | List | |\n| `seed` | Object, default: null | A long integer to use as a seed for the randomization. If the boolean value of 'false' is passed, then a completely random and unreproducible order will be generated. |"]]