Thông báo: Tất cả dự án phi thương mại đã đăng ký sử dụng Earth Engine trước ngày 15 tháng 4 năm 2025 phải xác minh điều kiện sử dụng phi thương mại để duy trì quyền truy cập vào Earth Engine.
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Thêm một cột gồm các số ngẫu nhiên giả định có thể xác định vào một tập hợp. Kết quả là các số dấu phẩy động có độ chính xác kép. Khi sử dụng phương thức phân phối "đồng nhất" (mặc định), kết quả sẽ nằm trong khoảng [0, 1). Khi sử dụng phân phối "bình thường", đầu ra có μ=0, σ=1 nhưng không có giới hạn rõ ràng.
Loại phân phối số ngẫu nhiên cần tạo; một trong hai loại "đồng nhất" hoặc "bình thường".
rowKeys
Danh sách, không bắt buộc
Danh sách các thuộc tính phải xác định một phần tử của tập hợp một cách duy nhất và lặp lại, dùng để tạo số ngẫu nhiên. Giá trị mặc định là [system:index].
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-04-01 UTC."],[[["`randomColumn()` adds a new column of pseudorandom numbers to a FeatureCollection, with the default column name being \"random\"."],["The generated random numbers can follow either a uniform distribution (\\[0, 1)) or a normal distribution (μ=0, σ=1) specified using the `distribution` parameter."],["Users can provide a seed value for reproducibility using the `seed` parameter, ensuring the same sequence of random numbers is generated for a given seed."],["This function is commonly used for tasks like randomly splitting a FeatureCollection into subsets for training and testing machine learning models, as demonstrated in the examples."]]],["This tool adds a column of pseudorandom numbers to a FeatureCollection. Users can specify the `columnName`, `seed`, and `distribution`. The default distribution, 'uniform', generates numbers between 0 and 1; 'normal' produces numbers with a mean of 0 and a standard deviation of 1. The `randomColumn` method returns the modified FeatureCollection. This is exemplified by creating random splits into subsets. The outputs are double-precision floating point numbers.\n"]]