إشعار: يجب
إثبات أهلية جميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إلى Earth Engine.
ee.List.shuffle
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
ترتيب القائمة المحدّدة بشكل عشوائي: يُرجى العِلم أنّ ترتيب التبديل سيكون دائمًا هو نفسه لأي قيمة أولية معيّنة، ما لم تكن قيمة القيمة الأولية هي "false".
الاستخدام | المرتجعات |
---|
List.shuffle(seed) | قائمة |
الوسيطة | النوع | التفاصيل |
---|
هذا: list | قائمة | |
seed | كائن، القيمة التلقائية: null | عدد صحيح طويل يُستخدَم كقيمة أولية لعملية العشوائية. في حال تم تمرير القيمة المنطقية "false"، سيتم إنشاء ترتيب عشوائي وغير قابل للتكرار تمامًا. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\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. |"]]