ee.List.shuffle
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
به طور تصادفی لیست مشخص شده را تغییر دهید. توجه داشته باشید که ترتیب جایگشت همیشه برای هر دانه معین یکسان خواهد بود، مگر اینکه مقدار seed 'false' باشد.
استفاده | برمی گرداند | List. shuffle ( seed ) | فهرست کنید |
استدلال | تایپ کنید | جزئیات | این: list | فهرست کنید | |
seed | Object، پیش فرض: null | یک عدد صحیح طولانی برای استفاده به عنوان دانه برای تصادفی سازی. اگر مقدار بولی 'false' پاس شود، یک ترتیب کاملا تصادفی و غیرقابل تکرار ایجاد می شود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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. |"]]